Domain – Google app engine with custom domain shows redirected URLs

domaingoogle-app-engineredirect

I'm using Google App Engine with custom domain. (Flexible type with nodejs)

When I completed settings it with
https://cloud.google.com/appengine/docs/python/console/using-custom-domains-and-ssl?hl=en
, I could visit my site with custom domain "mydomain.com"

It's good. However, the problem is that URL address in my browser shows redirected URLs such as : "myGAEdomain.appspot-preview.com"

How can I get the address "mydoamin.com" in the browser URL address bar when I visited my GAE site ?
Or which part should I have to check to resolve this?

Best Answer

You’re right, the App Engine Flexible Environment is currently in Beta as stated on the official page and its implementation may change, possibly in backward-incompatible ways.

Now, in order to use Custom Domains with a Flexible Environment GAE instance, you first need to whitelist them prior adding them for your application as mentioned in this Before you Begin section. Listed in the third point, it is possible to whitelist the domains by filling out this Google contact form.

Note that prior using any custom domains, all GAE instance's traffic is served from the appspot-preview.com domain as described in the Domain Update section. Therefore, it is possible that you were initialy able to map yourdomain.com to YourProjectID.appspot-preview.com and so, presumably having your ProjectID the same as yourdomain name would explain the behavior you noticed.

Related Topic