Skip to content

Instantly share code, notes, and snippets.

@epintos
Last active May 22, 2016 19:11
Show Gist options
  • Save epintos/f2ba43a47bca53a2a6c4 to your computer and use it in GitHub Desktop.
Save epintos/f2ba43a47bca53a2a6c4 to your computer and use it in GitHub Desktop.
Angular S3 Static Setup
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>your-app-dns</HostName>
<Protocol>https</Protocol>
<ReplaceKeyPrefixWith>#/</ReplaceKeyPrefixWith>
</Redirect>
</RoutingRule>
</RoutingRules>
@simonh1000
Copy link

Does this leave the URL intact so that the angular app can process deep links?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment