|
|
|
|
|
by philfreo
2308 days ago
|
|
> The redirect logic provided by the S3 website endpoint can be moved to a Lambda@Edge function. The post here is using Lambda@Edge to handle pointing example.com/about/ to example.com/about/index.html However there's a lot more you can do / may want to do with Lambda@Edge if you're hosting a Cloudfront+S3 website. I just wrote up how I set up a system to make managing server-side redirects (e.g. 301s from /old-page to /new-page) easier via Lambda@Edge. https://news.ycombinator.com/item?id=22351484 https://engineering.close.com/posts/redirects-using-cloudfro... |
|
https://dev.to/jillesvangurp/using-cloudfront-s3-and-route-5...
IMHO, Amazon should be ashamed of themselves for making it so unbelievably convoluted and hard to host a simple website on cloudfront. It's the one thing almost every website out there has to solve and they made it super painful to get this right.