I have:
- signed up for an AWS account
- set up buckets for
example.com
andwww.example.com
- enabled website settings in properties for each domain
- set bucket policies for both domains
- created this cname record:
www >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
.
- How do I make this work?
- Can I add a record of some kind at godaddy to make
example.com
redirect towww.example.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.