Skip to content

Instantly share code, notes, and snippets.

@djumaka
Last active December 9, 2015 15:21
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 djumaka/802275354463b195dd0e to your computer and use it in GitHub Desktop.
Save djumaka/802275354463b195dd0e to your computer and use it in GitHub Desktop.
A working HTACCESS rule file for Angular.JS HTML5 mode
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(img|js|app|css|robots\.txt|favicon\.ico)(.*)$ [NC]
RewriteRule ^ index.php [NC,L]
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment