出於某種原因,當我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