How to rewrite url in apache htaccess for angularjs app
问题 The htaccess I'm using is as follow RewriteBase / RewriteEngine on RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} -U RewriteRule ^.*$ - [NC] RewriteCond %{REQUEST_URI} !-U RewriteRule ^(.*)$ #/$1 [L] On my localhost, when I'm simply typing localhost/ it's redirecting to localhost/home and my angular app is running perfectly. But when I'm directly typing the