Skip to content

Instantly share code, notes, and snippets.

@johhansantana
Last active September 25, 2016 19:53
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 johhansantana/5faeb0be193248dd2cda97d5a676b8ed to your computer and use it in GitHub Desktop.
Save johhansantana/5faeb0be193248dd2cda97d5a676b8ed to your computer and use it in GitHub Desktop.
fix angular refresh not found
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) /appname/index.html [NC,L]
# or /index.html [NC,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment