I've googled, read a lot for days. And I still can't get a proper answer, so I'm gonna ask.
I have a custom domain, and I added it to deploy my app with App Engine. When I do, App Engine also creates others urls of my same app, for example:
My domain is example.com, when I deploy, I have four sites with my same website:
IMPORTANT: My ProjectID is the same name as my domain that I bought
- example.com (and www.example.com)
- example.appspot.com
- staging.example.appspot.com
- us.artifacts.example.appspot.com
So, how could I kill all those unnecessary urls and only stay with www.example.com and example.com?
(I was thinking of using Express.js to handle this, but I first would like to know if there's a better final solution. I've also tried configuring the dispatch.yaml file with it but it doesn't seem to work on this, and also with a .htaccess file to send 301 but App Engine doesn't recognize this since it's not an Apache server).
DUPLICATED, CHECK How do I prevent the "appspot.com" of my App Engine app?