内容页实现301重定向的方法有:
1.ASP下的301重定向,代码如:
<%@ Language=VB %>
<%
Status=”301 Moved Permanently”
AddHeader “Location”,”http://”
%>
2.ASP .NET下的301重定向,代码如:
< runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Status = “301 Moved Permanently”;
AddHeader (“Location”,”http://www);
}
>
3.PHP下的301重定向,代码如:
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location:http://lusongsong.com/”);
exit();