Reputation: 19967
How can an AngularJS site's url be automatically rewritten from example.com/app
to example.com/app/#/
?
Currently, it changes from example.com/app
to example.com/app#/
.
Upvotes: 1
Views: 198
Reputation: 784908
You can use this rule:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?[^/])$ /$1/#/ [L,NE,R=302]
Upvotes: 1