ASP下的301转向代码:
<%@ Language=VBScript %>
<%
Response.Status=\"301 Moved Permanently\"
Response.AddHeader \"Location\",\"http://www.0574nb.cn\"
%>
ASP.Net下的301转向代码:
<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = \"301 Moved Permanently\";
Response.AddHeader(\"Location\",http://www.0574nb.cn/\");
}
</script>
PHP:
<?php
Header( \"HTTP/1.1 301 Moved Permanently\" );
Header( \"Location: http://www.0574nb.cn\" );
?>