If you’ve ever set up redirect rules in S3, you’ll find that it’s a fairly straightforward process. You set up a new bucket, enable website hosting and create some redirect rules. But if you tie in S3 with CloudFront, you’ll soon find out that all the redirect rules you just made won’t work. Not out of the box anyway.
In this article, I’m going to walk you through setting up a redirect rule in S3 and have it work with CloudFront. If you’ve never set up redirect rules in S3, not to worry. This article is for you!