
2016年4月16日RewriteEngine on
# no www to www
RewriteCond %{HTTP_HOST} ^yuanzhumuban.cc$ [NC]
RewriteRule ^(.*)$ http://www.yuanzhumuban.cc/$1 [L,R=301]
# tags
RewriteRule ^tags/(.*)$ /tags.php?/$1
RewriteRule ^tags/(.*)/([0-9]+)$ /tags.php?/$1/$2
# sitemap xmlmap
RewriteRule ^sitemap.html /plus/plus_sitemap.php
RewriteRule ^xmlmap.xml /plus/plus_xmlmap.php
RewriteRule ^rss.xml /plus/plus_rss.php
# 404 page
ErrorDocument 404 /plus/plus_404.php
RewriteEngine on
# no www to www
RewriteCond %{HTTP_HOST} ^yuanmuban.lypengcheng.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yuanmuban.lypengcheng.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^yuanmuban.cc$ [NC]
RewriteRule ^(.*)$ http://www.yuanmuban.cc/$1 [L,R=301]
# tags
#RewriteRule ^tags/([^x00-xff\dA-Za-z]+?).html$ /tags.php?/$1
#RewriteRule ^tags/([^x00-xff\dA-Za-z]+?)_([0-9]+).html$ /tags.php?/$1/$2
RewriteRule ^tags/([^x00-xff\dA-Za-z]+?).html$ /tags.php?/$1
RewriteRule ^tags/([^x00-xff\dA-Za-z]+?)_(\d+).html$ /tags.php?/$1/$2
# sitemap xmlmap search
RewriteRule ^sitemap.html /plus/plus_sitemap.php
RewriteRule ^xmlmap.xml /plus/plus_xmlmap.php
RewriteRule ^rss.xml /plus/plus_rss.php
# 404 page
ErrorDocument 404 /plus/plus_404.php
网站重定向与配置优化
1093

被折叠的 条评论
为什么被折叠?



