I have a domain registered with GoDaddy. Domain is : www.dnareversecomplement.com DNS points to AWS (using Route 53)
Created content for it in S3 - connected bucket to domain as required. Name of bucket is www.dnareversecomplement.com Content uploaded, and I can view the domain here:
http://www.dnareversecomplement.com/
Created a second S3 bucket called dnareversecomplement.com and pointed it to the first bucket: www.dnareversecomplement.com
All looks good, but when I browse to : http://dnareversecomplement.com
It doesn't work. I can't get to the domain unless I use www.
What am I doing wrong please?
CodePudding user response:
1- In CloudFront distribution, you need to set Alternate Domain Names (CNAMEs) to the root domain and www subdomain. In your case, these are dnareversecomplement.com and www.dnareversecomplement.com.
2- Create two A records (one for dnareversecomplement.com, and the second for www.dnareversecomplement.com) in your DNS zone to point CloudFront distribution.
Please see the following example: link
CodePudding user response:
you need to create a redirect from your second bucket to your main domain. you can read more here