Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Engine: How to redirect www request to non-www domain at DNS level

For a Java App on App Engine,

An App has been deployed at Custom Domain(example.com).

Site can be accessed from URL http://example.com but can't be accessed using http://www.example.com

How should the request for the www URL (http://www.example.com/index.jsp) should be redirected to non www URL (http://example.com/index.jsp)?

like image 200
Ganesh Bhosle Avatar asked Dec 14 '25 09:12

Ganesh Bhosle


1 Answers

On the same page where you added your custom domain, you select the second option on step 2 and add www into the input box before your example.com then click Add. Then just follow the instructions in step 3.

The page On your domain registrar, for the alias www, add the name/value ghs.googlehosted.com for type CNAME. Doing all these steps will allow for the html at http://example.com/index.jsp to also be loaded at http://www.example.com/index.jsp.

like image 123
BrockLee Avatar answered Dec 15 '25 21:12

BrockLee