Skip to content

Instantly share code, notes, and snippets.

@danilop
Last active August 7, 2020 09:29
Show Gist options
  • Save danilop/d4ff43835e469043e95e to your computer and use it in GitHub Desktop.
Save danilop/d4ff43835e469043e95e to your computer and use it in GitHub Desktop.
Amazon S3 redirection rule to send every "miss" (HTTP 404) to the domain root
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>danilop.net</HostName>
<ReplaceKeyWith/>
</Redirect>
</RoutingRule>
</RoutingRules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment