Skip to content

Instantly share code, notes, and snippets.

@rayfranco
Created July 30, 2012 23:04
  • Star 21 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rayfranco/3211654 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>
@sdeering
Copy link

sdeering commented Aug 8, 2014

Have you tackled this problem with index.php?

RewriteRule (.*) index.php [L]

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