This may be due to an unpleasant problem that appeared during Angular 1.1.5 and is a bug in the main library. A solution that worked for many is to add the following tag to head.html.
If your application is running in the root directory of your domain.
<head> ... <base href="/"></base> ... </head>
Or, if your application is running in a subdirectory, specify this subdirectory (for example, "myapp"):
<head> ... <base href="/myapp/"></base> ... </head>
In addition, you can also try a new set of rewriting rules. This configuration works for many ui-router users.
<IfModule mod_rewrite.c> RewriteEngine on # Don't rewrite files or directories RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] # Rewrite everything else to index.html to allow html5 state links RewriteRule ^ index.html [L] </IfModule>
source share