【发布时间】:2013-02-02 10:12:38
【问题描述】:
我有以下 PHP 重定向脚本:
if ($country=="IL") { header('Location: http://iquality.itayb.net/index-he.html'); }
else { header('Location: http://iquality.itayb.net/index-en.html'); }
这会根据$country 的值将用户重定向到不同的页面。引用者成为重定向页面本身。
我怎样才能保留原来的referrer字段?
【问题讨论】:
-
是的,重定向前需要保存。
-
这个重定向加载的不是 302 代码吗?如果是这样,就我测试过的而言,它应该保留原始推荐人。
标签: php redirect url-redirection