php和asp的301 重定向

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
%>