Angular.js How to remove hash from url?



.htaccess file in root directory:

RewriteEngine On 
 # If an existing asset or directory is requested go to it as it is
 RewriteRule ^ - [L]

 # If the requested resource doesn't exist, use index.html
 RewriteRule ^ /index.html

In this mode you can use links without the # in HTML files

<a href="/path">link</a>

Link in Browser:


About admin

Check Also

Best resources to learn Laravel

Leave a Reply

Your email address will not be published. Required fields are marked *