"www" address of website

0

I registered a website with Route 53 and hosted it on an S3 bucket with website enabled. The site works fine, as long as I type it in exactly as it appears on the "Hosted zones" page. However, if I type "www." before it, I get a DNS error.

How do I configure Route 53 so that it works with the www address before it? I tried creating a new Hosted Zone and setting it up with a bucket that redirects to the main one, but that seemed to have no effect.

Edited by: griggszm on Jul 21, 2019 1:29 PM

已提問 5 年前檢視次數 217 次
1 個回答
0

You need to do two things,

Create a new S3 bucket called www.<yourdomain>
Configure it to redirect web traffic to your original S3 bucket.

Then go back to your hosted zone entry, add a new A record within that domain with the name 'www'
Click yes for alias and point it to your new www S3 bucket. You should now have 2 A records - one pointing to the <your-domain> S3 bucket and one pointing to www.<your-domina> S3 bucket

tedmc
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南