mtihlenfield
mtihlenfield

Reputation: 47

Point www subdomain to naked domain instead of bucket name

I've got a domain name (example.com) which I've purchased through namecheap. The website is a just static site that I recently decided to switch over to S3. Following the instructions on the aws website I've:

When I go to example.com it works just as expected. When I go to www.example.com it takes me to my website correctly but it shows www.example.com.s3-website.us-east-2.amazonaws.com as the domain. I haven't been able to figure out how to get it to point to www.example.com instead. Where have I gone wrong?

Upvotes: 2

Views: 65

Answers (1)

Dave Maple
Dave Maple

Reputation: 8412

Configured the www.example.com bucket to redirect to the example.com bucket

You want the actual redirect url configured in S3 to be https://example.com, not the url of your example.com bucket. Just update that and you should be good to go.

Upvotes: 3

Related Questions