复制代码 代码如下:
<?php
$url=substr($_GET['go'],1);//去掉最前面的斜杠
$e=explode('/',$url);//分割字符串
//判断并设置新的URL
$newurl='http://www.vevb.com';
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$newurl);
?>
复制代码 代码如下:
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
ErrorDocument 404 /index.html
DirectoryIndex index.html default.html index.php index.htm default.htm
Redirect permanent /abc/
Redirect permanent /cde/
Redirect permanent /fgh/
order deny,allow
复制代码 代码如下:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^abc.com [NC]
RewriteRule ^(.*)$ $1 [L,R=301]
新闻热点
疑难解答