3

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)?

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

This is a workaround to the original problem. I understood the user did not want to use www at all. This solution only instructs how to have both www.example.com & example.com working.
This does not answer the question. How to redirect from www to non www?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.