Skip to content

Instantly share code, notes, and snippets.

@renesansz
Last active December 20, 2016 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save renesansz/088c553d59442f290429 to your computer and use it in GitHub Desktop.
Save renesansz/088c553d59442f290429 to your computer and use it in GitHub Desktop.
.htaccess for Angular HTML5 Mode routing using Angular-UI
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) /index.html [NC,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment