Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 09:39
Show Gist options
  • Save velotiotech/eb493ae4142dfeaf5f30929cd82a844c to your computer and use it in GitHub Desktop.
Save velotiotech/eb493ae4142dfeaf5f30929cd82a844c to your computer and use it in GitHub Desktop.
XML for redirection rules for S3
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>mywebsite.com</HostName>
<ReplaceKeyPrefixWith>notfound/</ReplaceKeyPrefixWith>
</Redirect>
</RoutingRule>
</RoutingRules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment