Skip to content

Instantly share code, notes, and snippets.

@radiumrasheed
Last active February 26, 2020 17:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radiumrasheed/1b1d10924a19d55f8c1cc1299c92be91 to your computer and use it in GitHub Desktop.
Save radiumrasheed/1b1d10924a19d55f8c1cc1299c92be91 to your computer and use it in GitHub Desktop.
angular s3 redirect rule
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<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