且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Amazon S3 重定向规则 - 保留查询参数

更新时间:2023-11-30 23:07:58

问题是我在 CloudFront 中设置了源不转发查询字符串,因此当 S3 收到请求时,它会在没有查询参数的情况下正确重定向.您可以在 CloudFront > 行为 > 转发查询字符串中找到此设置.

The problem was that I had the origin set up in CloudFront not to forward Query Strings so when S3 got the request it would redirect properly without the query params. You can find this setting in CloudFront > Behaviors > Forward Query Strings.