HTACCESS FOR URL ROUTING FOR ANGULAR 2 APPLICATION

/*HTACCESS FOR URL ROUTING FOR ANGULAR 2 APPLICATION*/

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

Comments

Popular posts from this blog

How To Use Crosswalk in Ionic 2 or 3 To Solve Compatibility Issue in Android

Create a Background Service Using systemd In Linux