Skip to content

Instantly share code, notes, and snippets.

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 dinusuresh/6a7139d8508bc7d59db7a9adac6b6b58 to your computer and use it in GitHub Desktop.
Save dinusuresh/6a7139d8508bc7d59db7a9adac6b6b58 to your computer and use it in GitHub Desktop.
Apache Angular Pretty URL config
RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ /index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment