Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm hosting my website on Google App Engine and my domain name on GoDaddy.

Google App Engine does not allow you to have naked URLs. So it doesn't allow you to have example.com but does allow you to have www.example.com.

I can easily enable forwarding in GoDaddy to forward exmample.com to www.example.com however it does not keep the relative URL path.

For example I would like for example.com/images/3.jpg to be forwarded to www.example.com/images/3.jpg and not just www.example.com.

share|improve this question
add comment

2 Answers 2

GoDaddy's forwarding feature does preserve paths. I have a .org domain registered with GoDaddy and forwarded to the corresponding .com domain. Paths are preserved.

I use the following forwarding options:

  • Redirect type: 301 permanent
  • Forward settings: forward only
share|improve this answer
    
I think I recall this being a problem in the past, but working now, providing you don't select "Forward with Masking". –  dan Nov 23 '13 at 0:40
add comment

Why don't you just use .htaccess?

Create a text file and copy and paste the following inside:

# Force 'non-www' to 'www'
RewriteEngine On
RewriteCond %{HTTP_HOST} ^YOURDOMAIN.com [NC]
RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [L,R=301] 
  1. rename it to ".htaccess"
  2. upload it to your public_html folder where index.php is located
share|improve this answer
    
The hosting is on Google App engine, which doesn't have the concept of a public_html folder. –  paulmorriss Dec 16 '11 at 15:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.