I have a S3 bucket called download.mydomain.com
My DNS is managed by a local host and they have set up a CNAME to map download.mydomain.com to s3.amazonaws.com. In so doing, this works perfectly:
http://download.mydomain.com/myimage.jpg
I am working on moving my hosting and having trouble getting this to work right with a new DNS provider. Using a different domain for testing purposes, I have a bucket called square.somedomain.com
I set up a CNAME to map square.somedomain.com to s3.amazonaws.com and then try the url:
http://square.somedomain.com/square.jpg
It finds the image, but then the URL in the browser is changed to:
http://square.somedomain.com.s3-us-west-2.amazonaws.com/square.jpg
How can I prevent this? On my working main domain it does not refresh with the extra "s3-us-west-2.amazonaws.com" in the browser address bar.