php和asp的301 重定向

in 程序开发, 搜索优化

PHP:

<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.haohtml.com'.$request_uri);

ASP:

<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.haohtml.com/"
Response.End
%>

0 Comments