For some reason, when I redirect from header("Location") , the new page saves the hash.
So if you are on example.com/index.html#signup
I redirect with
header("Location: /account.html"); exit;
But then it shows example.com/account.html#signup
Why is this happening and how can I stop it? those. example.com/account.html
Note:
I am using .htaccess to redirect file.html to file.php
RewriteRule ^([a-zA-Z0-9-_.]+)\.html$ $1.php [L]
source share