I'm trying to rewrite all URL in my Angular 6 application. I've tried many rules and nothing worked.
.htaacess works, because this rule is working fine:
RewriteRule ^test\.html http://www.google.com/? [R=301,L]
Tried rules:
RewriteEngine On
Options +FollowSymLinks
RewriteBase /
RewriteRule ^#/(.*)$ /$1 [L,R=301]
RewriteRule ^#/(.*)$ $1
RewriteRule ^/#/(.*)$ $1
RewriteRule ^#/(.*)$ /$1 [N]
My urls look like this: www.domain.pl/#/login and I want to rewrite them to www.domain.pl/login