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
  • 17,511
  • 22
  • 84
  • 148

1 Answers1

1

You can use this rule:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?[^/])$ /$1/#/ [L,NE,R=302]
anubhava
  • 713,503
  • 59
  • 514
  • 593