本文共 1571 字,大约阅读时间需要 5 分钟。
Redirect [status] URL-path URL RedirectMatch [status] regex URL
1 2 3 | Redirect 301 /old/old.htm http://www.zivee.cn/new.htmRedirect permanent /one http://zivee.cn/twoRedirectMatch 301 (.*)\.gif$ http://www.zivee.cn/images/$1.jpg |
1 2 3 4 | Options +FollowSymLinksRewriteEngine onRewriteCond %{HTTP_HOST} ^zivee\.cnRewriteRule ^(.*)$ http://www.zivee.cn/$1 [R=permanent,L] |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # BEGIN WordPress <IfModule mod_rewrite.c>RewriteEngine On#RedirectOptions +FollowSymLinksRewriteCond %{HTTP_HOST} ^zivee\.cn$RewriteCond %{HTTP_HOST} !^$RewriteRule ^(.*)$ http://www.zivee.cn/$1 [R=301,L]#Rewrite(blog)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^blog/.* /blog/index.php [L]RewriteRule . - </IfModule># END WordPress |
本文转自leonardos51CTO博客,原文链接:http://blog.51cto.com/leomars/330972 ,如需转载请自行联系原作者