I've setup a static website on S3 under a
www.mydomain.com bucket. I also created a CNAME record for it in Namecheap looking like this:
- Type: CNAME Record
It redirects correctly when I go to
www.mydomain.com but the URL being displayed is of S3 and not my domain. If it helps, here's some output from
;; ANSWER SECTION: www.mydomain.com. 1177 IN CNAME www.mydomain.com.s3-website-ap-southeast-1.amazonaws.com. www.mydomain.com.s3-website-ap-southeast-1.amazonaws.com. 60 IN CNAME s3-website-ap-southeast-1.amazonaws.com. s3-website-ap-southeast-1.amazonaws.com. 5 IN A 184.108.40.206
When I checked the headers from
curl, I got a 301.