Skip to content

Instantly share code, notes, and snippets.

@waskito
Created Dec 31, 2014
Embed
What would you like to do?
.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