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

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
    
I have this setup on my domain and works for my main URL, but a redirect / forward will not keep the relative path of the original link. –  JoeFletch Jul 19 at 13:38
    
@JoeFletch Forwarding for me does keep the URL path. For example I have ostermiller.com set up to forward using GoDaddy to ostermiller.org. ostermiller.com/utils forwards as expected to the corresponding page on the .org domain. –  Stephen Ostermiller Jul 20 at 20:51
    
@StephenOstermiller thanks for your reply! It took a few hours for the change to be implemented. All is working as expected now! –  JoeFletch Jul 21 at 18:22

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

Your Answer

 
discard

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