Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i to forward domain.com to www.domain.com at godaddy for s3 hosted site?

I have:

1) signed up for an aws account
2) set up buckets for domain.com and www.domain.com
3) enabled website settings in properties for each domain
3) set bucket policies for both domains
4) created this cname record:
www > www.domain.com.s3-website-us-east-1.amazonaws.com

Right now when a user goes to www.domain.com, they see the index page, and everything is working just fine. When they go to domain.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 domain.com to forward to www.domain.com so that no matter what the user types in the browser, they see the site that is located at www.domain.com.

  • How do I make this work?
  • Can I add a record of some kind at godaddy to make domain.com redirect to www.domain.com?
  • Do I have to get a static ip to make this work using s3? I keep reading about an elastic ip from ec2, but I am not understanding how I can set that up, or how it would work since I am not using ec2 at all for my website.

Please help a newbie out!

like image 465
empathysage Avatar asked May 03 '11 14:05

empathysage


People also ask

Can you forward a domain with GoDaddy?

Forward your domain registered with GoDaddy to send visitors to a different page when they visit your domain. Forwarding is useful when you've already built a website elsewhere, or if you want to connect your domain to a social media page.


2 Answers

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.

  1. Login to GoDaddy.com.
  2. Click on My Account.
  3. Click on the Domains product, and click the Launch button next to your domain.
  4. In the Domain Information section you should see "Forwarding: Off". Click the Manage link next to it.
  5. A Forwarding and Masking dialog box should come up. Under Forward DOMAIN.COM to enter "www.domain.com".
  6. Click the OK button.

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

like image 103
Michael Krebs Avatar answered Oct 09 '22 01:10

Michael Krebs


You can use wwwizer's free naked domain redirect service:

http://wwwizer.com/naked-domain-redirect

Just put 174.129.25.170 as the A record for the non-www version of your domain.

like image 23
rjmunro Avatar answered Oct 09 '22 03:10

rjmunro