Created
October 22, 2015 12:15
-
-
Save extrabacon/141426a3a742130cb069 to your computer and use it in GitHub Desktop.
S3 Hosting for HTML5 apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
history.pushState({}, "entry page", location.hash.substring(1)); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RoutingRules> | |
<RoutingRule> | |
<Condition> | |
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals> | |
</Condition> | |
<Redirect> | |
<HostName>yourdomainname.com</HostName> | |
<ReplaceKeyPrefixWith>#!/</ReplaceKeyPrefixWith> | |
</Redirect> | |
</RoutingRule> | |
</RoutingRules> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: http://stackoverflow.com/questions/16267339/s3-static-website-hosting-route-all-paths-to-index-html