Skip to content

Instantly share code, notes, and snippets.

@micc83
Created October 31, 2016 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save micc83/97f28ec3b4cf489700f65d0b35b67417 to your computer and use it in GitHub Desktop.
Save micc83/97f28ec3b4cf489700f65d0b35b67417 to your computer and use it in GitHub Desktop.
.htaccess for javascript app routing
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) /conf/index.html [NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment