特别简单,直接上代码
<code><span><span><?php header("</span>HTTP/<span>1.1</span><span>301</span> Moved Permanently<span>"); header("</span>Location: http:<span>//www.baidu.com");</span><span>exit</span>(); <span>?></span></span></span></code>
参考:
http://www.jb51.net/article/29739.htm
以上就介绍了PHP重定向,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。