出于某种原因,当我header("Location")
重定向新的页面保持哈希值。重定向是保持哈希
所以,如果你对example.com/index.html#signup
我重定向与
header("Location: /account.html");
exit;
但后来它显示example.com/account.html#signup
这究竟是为什么以及如何我停止吗?即example.com/account.html
注:
我使用一个.htaccess重定向到file.html
file.php
RewriteRule ^([a-zA-Z0-9-_.]+)\.html$ $1.php [L]
这并不在Firefox上运行 – machineaddict