asp、 php实现301跳转重定向
http://www.7788sky.cn/post/asp_php_301_head_redirect.html
reference link as above
PHP:
在 index.php 的最顶部加入以下几行:
<?php
header ( " HTTP/1.1 301 Moved Permanently " ) ;
header ( " Location: http://www.7788sky.cn/ " ) ;
exit () ;
?>
ASP:
在 index.asp 或 default.asp 的最顶部加入以下几行:
<%
Response . Status = " 301 Moved Permanently "
Response . AddHeader " Location " , " http://www.7788sky.cn/ "
Response . End
%>
查看更多关于asp、 php实现301跳转重定向的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did44308