Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save surfjedi/7fdf4da41897dc7bc8e1773eeccc5c1e to your computer and use it in GitHub Desktop.
Save surfjedi/7fdf4da41897dc7bc8e1773eeccc5c1e 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