1

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#/.

Raphael Rafatpanah
  • 19,082
  • 25
  • 92
  • 158

1 Answers1

1

You can use this rule:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?[^/])$ /$1/#/ [L,NE,R=302]
anubhava
  • 761,203
  • 64
  • 569
  • 643