I\'ve just created a new bucket in AWS S3. I want to host some static files there but if they\'re not all there, redirect to my main server. Seems simple but I\'ve followed
Check the console under web site hosting settings to find the web site endpoint hostname for your bucket.
You are sending requests to the REST endpoint hostname -- as evidenced by the XML error message.
http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
Also, you'll want to replace the key prefix with nothing, not a slash, or you'll end up with two slashes.