【发布时间】:2015-03-17 08:06:57
【问题描述】:
我正在使用此命令重定向到另一个页面:
header('Location: \dealer\skuska\layout.php');
在 Chrome 中这可以正常工作,但在 Firefox 中它会重定向到:
http://212.5.221.26:85/dealer/skuska/actions/\dealer\skuska\index.php
为什么会发生这种情况,我该如何解决?
【问题讨论】:
-
根据rfc2616 protocol,应该是绝对URI。相关的作品,但正如您所见,它会不一致。
-
请检查斜杠和反斜杠。我认为路径应该有斜线。
标签: php redirect header url-redirection