Peter Chen

  • About
  • iOS
  • ML
  • Design

Have CloudFront use your S3 Redirect Rules

Jun 28, 2017

The key is to point your CloudFront custom origin to the S3 static website hostname instead of the autocomplete bucket hostname b/c only the static website will serve redirects.

https://serverfault.com/questions/450940/why-s3-website-redirect-location-is-not-followed-by-cloudfront

http://blog.goguardian.com/nerds/redirects-in-aws-cloudfront

#aws #cloudfront #s3 #redirect