非甾体类抗:PHP 页面跳转

来源:百度文库 编辑:九乡新闻网 时间:2024/04/27 22:08:43
PHP的HEADER函数。PHP里的HEADER函数的作用就是向浏览器发出由HTTP协议规定的本来应该通过WEB服务器的控制指令,例如声明返回信 息的类型("Context-type: xxx/xxx"),页面的属性("No cache", "Expire")等等
1. php的header
Php代码 ',1)">
Header("Location: http://www.dreamdu.com/xhtml/");
Location:后面要有空格
2. JavaScript的window.location
Php代码 ',2)">
echo "";
3. HTML的meta的refresh
Php代码 ',3)">
echo "";
4.如果是永久性的重定向,考虑到seo可以使用下面代码
Php代码 ',4)">
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://www.dreamdu.com/xhtml/");