- Newest
- Most votes
- Most comments
Okay, I did make 2 A records now, like comments explained.
Here are photos of them
However, as if you can try, website bestsupport.lv works perfectly, but when I add www it again gives the same error -
Setup your A record to point to www.bestsupport.lv, then create the Apex record for bestsupport.lv as an A record and then toggle the switch to Alias and choose Route traffic to "Alias another record in this Hosted Zone" and choose the A record for www.bestsupport.lv.
Hope this helps!
I have Deleted the A record for bestsupport.lv and left the A record with subdomain www.bestsupport.lv. Now bestsupport.lv doesn't work at all, when trying to access www.betsupport.lv it says empty bucket again. Seems like it didn't work.
Did you create the new A record as ALIAS to the A record for www.bestsupport.lv? This is the key to point the bare domain to the www record. Image below...
Thanks for clarifying with the image. Is this the only A record that should be there or there should be a second A record?
You should have 2 A records:
- www.bestsupport.lv --> x.x.x.x
- bestsupport.lv --> ALIAS www.bestsupport.lv (as seen above)
The first is the actual record for your site.
The second takes requests for the bare domain (bestsupport.lv) and redirects them to the A record for your site www.bestsupport.lv.
Thanks, I have finally made it to work. Apperantly I just created another bucket for the www. version and just used the same index file there as for the other bucket. Have a nice day! Thanks for help!
Relevant content
- asked 2 years ago
- asked 2 years ago
I think the issue is with your bucket name -- make the bucket name expect www.bestsupport.lv rather than the bare domain.
or follow this step to create a 2nd bucket that redircts to the working one.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html#root-domain-walkthrough-configure-redirect