301 code
—
1.IIS 301 CODE
IIS Information Services Manager->Virtual directory -> redirect to the URL, the need to enter the target URL, and select the “permanent redirect resources.”
2.ASP 301 code
<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”, “http://www.ie16.com/articles/301/”
%>
3.ASP.Net 301 code
4.php 301 code
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.ie16.com/articles/301/”);
exit();
5.CGI Perl 301 code
$q = new CGI;
print $q->redirect(”http://www.ie16.com/”);
6.jsp 301 code
<%
response.setStatus(301);
response.setHeader( “Location”, “http://www.ie16.com/” );
response.setHeader( “Connection”, “close” );
%>
Bookmark:Digg Del.icio.us Reddit
