301转背代码开散
<%@ Language=VBScript %> Response.Status=”301 Moved Permanently” Response.AddHeader “Location”, “lesishu/articles/301/” %> |
<script runat=”server”> private void Page_Load(object sender, System.EventArgs e) { Response.Status = “301 Moved Permanently”; Response.AddHeader(”Location”,”lesishu/articles/301/“); </script> |
header(”HTTP/1.1 301 Moved Permanently”); header(”Location: lesishu/articles/301/”); RewriteEngine on 5、CGI Perl下的301转背代码 exit(); |
$q = new CGI; print $q->redirect(”new-url/”); |
<% response.setStatus(301); response.setHeader( “Location”, “lesishu/” ); response.setHeader( “Connection”, “close” ); %> |
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^lesishu [NC] RewriteRule ^(.*)$ lesishu/$1 [L,R=301] |
Options +FollowSymLinks 3)使用正则停止301转背,真现真静态
ServerName lesishu RedirectMatch permanent ^/(.*) lesishu/$1 < irtualHost> |
相关信息
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|