Skip to content

Instantly share code, notes, and snippets.

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