为什么我的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是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,IP...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询