I have:
example.com
and www.example.com
www.example.com.s3-website-us-east-1.amazonaws.com
Right now when a user goes to www.example.com
, they see the index page, and everything is working just fine. When they go to example.com
, there is nothing but darknenss and silence because the page just doesn't load (and gives 'connection timeout' error. )
What I want is for example.com
to forward to www.example.com
so that no matter what the user types in the browser, they see the site that is located at www.example.com
.
example.com
redirect to www.example.com
?I think user Go Daddy's answer was correct, but I'll write up more succinct instructions that I followed to get the forwarding to work for me. I don't know why others are suggesting wwwizer, because GoDaddy uses a 301-redirect too (but maybe it didn't used to?). By the way, this answer isn't specific to Amazon's S3 -- it simply requires you have the "www" CNAME record set correctly.
GoDaddy.com
.example.COM
to enter www.example.com
.The forwarding kicked in for me within maybe half an hour.
To note, in the dialog box you can change it to forward either "http://" or "https://". I only needed it for "http://", so I'm not sure if GoDaddy will forward both SLL and non-SSL at the same time.
Also, if you're curious, if you click on the Advanced Options link in the Forwarding and Masking dialog box, it should be defaulted to "Forward Only" and have the redirect type set to permanently forward your domain (which is what gives the 301-redirect).