php以前做301跳转是可以这样写的 ,手册有例子
第二种特殊情况是以“Location:”标头。它不只是把这个标头发送回浏览器,它还将一个 REDIRECT(302)状态码返回给浏览器,除非之前已经发出了某个 3xx 状态码。
header('Location: http://test.com',true,301);结果出现这个错误
Unable to open WampServer's config file, please change path in index.php file
写成以前的就OK
header('HTTP/1.1 301 Moved Permanently'); header('Location: http://test.com');
不解。。。。
end..
评论: