Michael Cole Asked: 2018-06-15 14:56:51 +0800 CST2018-06-15 14:56:51 +0800 CST 2018-06-15 14:56:51 +0800 CST how to configure aws s3 bucket for 307 redirect 772 S3 buckets can be configured for "Static Website hosting" to redirect requests to another domain. These redirects are 301's which are forever. How can I configure the redirects as 307's? amazon-web-services 1 Answers Voted Best Answer Michael - sqlbot 2018-06-15T17:10:43+08:002018-06-15T17:10:43+08:00 You should be able to configure this behavior using routing rules. Select "Use this bucket to host a web site" and then add these: <RoutingRules> <RoutingRule> <Condition> <HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals> </Condition> <Redirect> <Protocol>https</Protocol> <HostName>other-site.example.com</HostName> <HttpRedirectCode>307</HttpRedirectCode> </Redirect> </RoutingRule> </RoutingRules> https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html Since S3 denies all access by default, this triggers a redirect regardless of what path is requested.
You should be able to configure this behavior using routing rules. Select "Use this bucket to host a web site" and then add these:
https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html
Since S3 denies all access by default, this triggers a redirect regardless of what path is requested.