ASP:
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://answer.cnblogs.com"
Response.End
PHP:
header("HTTP/1.1 301 Moved Permanently");
header("Location:http://answer.cnblogs.com");
exit();
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://answer.cnblogs.com"
Response.End
PHP:
header("HTTP/1.1 301 Moved Permanently");
header("Location:http://answer.cnblogs.com");
exit();