Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cbfranklin/6c0d82558573ca2f738725e254ffecc2 to your computer and use it in GitHub Desktop.
Save cbfranklin/6c0d82558573ca2f738725e254ffecc2 to your computer and use it in GitHub Desktop.
.htaccess for HTML5 Pushstate support
<ifModule mod_rewrite.c>
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.html
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment