为什么我的rewrite规则执行之后,所有的网站都被rewrite了,帮忙看下规则
#HeliconISAPI_Rewriteconfigurationfile#Version3.1.0.48RewriteEngineOnRewriteCompatibi...
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.48
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^/post/tag/(.*)$ /index\.php\?tag=$1
RewriteRule ^/tag/(.*)$ /index\.php\?tag=$1
RewriteRule ^/(about|contact|about-copyright|favor|archives|tags|sitemap|taotao)$ /index\.php\?pagename=$1
RewriteRule ^/post/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
RewriteRule ^/post/category/?(.*)$ /index\.php\?category_name=$1
RewriteRule ^/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
RewriteRule ^/author/?(.*)$ /index\.php\?author_name=$1
RewriteRule ^/rss.xml$ /wp-feed\.php/\?feed=rss2
RewriteRule ^/feed/?$ /wp-feed\.php/\?feed=rss2
RewriteRule ^/comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
RewriteRule ^/post/([0-9]+).html$ /index\.php\?p=$1 [NC]
RewriteRule ^/page/(.*)/?s=(.*)$ /index\.php\?s=$2&paged=$1
RewriteRule ^/page/(.*)$ /index\.php\?paged=$1
RewriteRule ^/post/date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5
RewriteRule ^/post/date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
RewriteRule ^/post/date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
RewriteRule ^/post/([0-9]+).html/(feed|rdf|rss|rss2|atom)$ /index\.php\?feed=rss2&p=$1
RewriteRule ^/post/([0-9]+).html/trackback$ /wp-trackback\.php\?p=$1
怎样只让特定的网站rewrite啊??????
服务器是iis6+ISAPI_REWRITE 展开
# Version 3.1.0.48
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^/post/tag/(.*)$ /index\.php\?tag=$1
RewriteRule ^/tag/(.*)$ /index\.php\?tag=$1
RewriteRule ^/(about|contact|about-copyright|favor|archives|tags|sitemap|taotao)$ /index\.php\?pagename=$1
RewriteRule ^/post/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
RewriteRule ^/post/category/?(.*)$ /index\.php\?category_name=$1
RewriteRule ^/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
RewriteRule ^/author/?(.*)$ /index\.php\?author_name=$1
RewriteRule ^/rss.xml$ /wp-feed\.php/\?feed=rss2
RewriteRule ^/feed/?$ /wp-feed\.php/\?feed=rss2
RewriteRule ^/comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
RewriteRule ^/post/([0-9]+).html$ /index\.php\?p=$1 [NC]
RewriteRule ^/page/(.*)/?s=(.*)$ /index\.php\?s=$2&paged=$1
RewriteRule ^/page/(.*)$ /index\.php\?paged=$1
RewriteRule ^/post/date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5
RewriteRule ^/post/date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
RewriteRule ^/post/date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
RewriteRule ^/post/([0-9]+).html/(feed|rdf|rss|rss2|atom)$ /index\.php\?feed=rss2&p=$1
RewriteRule ^/post/([0-9]+).html/trackback$ /wp-trackback\.php\?p=$1
怎样只让特定的网站rewrite啊??????
服务器是iis6+ISAPI_REWRITE 展开
1个回答
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家提供动态代理服务器服务的企业,旨在帮助用户更好地管理网络访问和安全。以下是一些关于StormProxies的IP动态代理服务的特点:1. 高匿名性:StormProxies的动态代理服务器具有高匿名性,可以有效...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询