[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600 RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP # wordpress
#解决xmlrpc.php无法访问导致的404错误
RewriteRule /blog/xmlrpc.php /blog/xmlrpc.php [L]
# For sitemapxml RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For tag RewriteRule /tag/(.*)/page/(d+)$ /index.php?tag=$1&paged=$2
RewriteRule /blog/tag/(.+)$ /blog/index.php?tag=$1
# For category RewriteRule /blog/category/(.*)/page/(d+)$ /blog/index.php?category_name=$1&paged=$2
RewriteRule /blog/category/(.*) /blog/index.php?category_name=$1
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /blog/wp-(.*) /blog/wp-$1 [L]
# For normal wordpress content, via index.php
# RewriteRule ^/blog/$ /blog/index.php [L]
RewriteRule /blog/(.*) /blog/index.php/$1 [L]
#分页查看文章
RewriteRule /blog/page/(.*)/?s=(.*) /blog/index.php?s=$2&paged=$1
RewriteRule /blog/page/(.*) /blog/index.php?paged=$1