Skip to content

Instantly share code, notes, and snippets.

@waskito
Created December 31, 2014 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waskito/76eb1de22058a133ee4f to your computer and use it in GitHub Desktop.
Save waskito/76eb1de22058a133ee4f to your computer and use it in GitHub Desktop.
.htaccess for angular html5mode
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ - [L]
RewriteRule ^index.html [L]
ErrorDocument 404 /index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment