I have followed the instructions that Amazon has provided for website hosting using s3 buckets here.
I have created two S3 buckets, one named MyWebsite.com and a second one named www.MyWebsite.com. In S3, I have configured the latter of the two buckets to redirect to the former, as shown in the example.
I am using Route53 to set Alias record sets for the www and non-www domain. My Record Sets are as follows:
Name: MyWebsite.com, Alias Target: s3-website-us-west-1.amazonaws.com.
Name: www .MyWebsite.com, Alias Target: s3-website-us-west-1.amazonaws.com.
Accessing the non-www domain, MyWebsite.com works fine, but when I try accessing www.MyWebsite.com, I am redirected to the invalid url:
http://http//MyWebsite.com.s3-website-us-west-1.amazonaws.com/
Where is the extra "http//" (without a colon) coming from and how can I prevent it?
Edit: Actual website name is thinkingdots.com
www
site does a 301 redirect to the non-www site. The non-www site sends a little bit of HTML. If it's still doing it for you then perhaps you have something cached in either the browser or in your DNS cache. Try to use an incognito browser window and/or wait for your DNS cache to expire. – Classicism