Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brian3kb/4cd95602d786f352416eeb9a3bc114c0 to your computer and use it in GitHub Desktop.
Save brian3kb/4cd95602d786f352416eeb9a3bc114c0 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