Skip to content

Issue with adapting Route53 domain to my S3 website, doesn't work with www

0

Howdy partners. I've encountered an issue regarding my S3-hosted website and Domain for it. Right now I have a website with the domain bestsupport.lv, which works fine, however, when trying to access the website by adding www in front of it (www.bestsupport.lv), I'm getting the following error "Error." I was guided in order to fix this issue and make my domain work also when using www I did make another A-type record, details - Route 53 record and I do also have another record for a domain which is here - Second A type record (without www)

Any clues on how to fix this issue?

Thanks in advance.

4 Answers
2
Accepted Answer

Okay, I did make 2 A records now, like comments explained. Here are photos of them Enter image description here Enter image description here

However, as if you can try, website bestsupport.lv works perfectly, but when I add www it again gives the same error - Enter image description here

answered a year ago
EXPERT
reviewed a year ago
AWS
EXPERT
reviewed a year ago
1

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!

AWS
EXPERT
answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
  • 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...

0

Enter image description here

AWS
EXPERT
answered a year ago
  • 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:

    1. www.bestsupport.lv --> x.x.x.x
    2. 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.

0

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!

answered a year ago
AWS
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.