Skip to content

Instantly share code, notes, and snippets.

@ejdyksen
Created January 20, 2015 21:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ejdyksen/53bfdaa72d9fba1644cc to your computer and use it in GitHub Desktop.
Save ejdyksen/53bfdaa72d9fba1644cc to your computer and use it in GitHub Desktop.
Angular on S3 rewrite rules
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>example.com</HostName>
<ReplaceKeyPrefixWith>#/</ReplaceKeyPrefixWith>
<HttpRedirectCode>302</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment