title: aws s3 static website endpoint redirection issue
body: <p>I have created a s3 bucket named xyz.com (Note:I didn't registered this domain) and uploaded index.html in it, given public permissions. from the properties section, enabled static website hosting and tested the endpoint it is working fine. </p>
  
  <p>For bucket redirection, I have created www.xyz.com bucket and from the properties section, we have enabled redirection  and given xyz.com as the redirection. When I click redirection endpoint, it is showing an error and not loadnig www.xyz.com. </p>
  
  <p>xyz.com - s3 static website endpoint is working.
  www.xyz.com - S3 static website is not working in browser. Site is not opening.</p>
  
  <p>Curl command output to www.xyz.com</p>
  
  <pre><code>curl -I http://www.xyz.com.s3-website-us-east-1.amazonaws.com 
  
  HTTP/1.1 301 Moved Permanently 
  x-amz-id-2: iEF0Wpr8Nbx5WUuzztLMMLFvC/EfldkeuKe7sKwCAYIxKnssLibUHqdN8YH9CXbNVEFG/uy7elw=
  x-amz-request-id: C8819F6399B37586 
  Date: Mon, 06 Nov 2017 01:02:37 GMT 
  Location: http://mydingdongbucket.com/ 
  Content-Length: 0 
  Server: AmazonS3
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>note: I Didn't create any hosted zone for xyz.com. All I want to test is, S3 enpoint redirections. </p>