于2011.8.28更新
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32

#默认包含了301设置,此设置情况下www.daozhao.com/aa.htm 会301跳至daozhao.com/aa.htm,将www.daozhao.com替换为您自己的域名就能实现自己的域名的301
RewriteCond %{HTTP:Host} ^www.daozhao.com$
RewriteRule (.*) http://daozhao.com$1 [NC,R=301]

#Wordpress

# # 形式:/PostID.html
# # 自定义链接 /%post_id%.html
#RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|taotao) /index\.php\?pagename=$1
RewriteRule /category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
RewriteRule /category/(.*)/page/(.*) /index\.php\?category_name=$1&paged=$2
RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
RewriteRule /author/(.*) /index\.php\?author_name=$1
RewriteRule /feed/?$ /index.php?feed=rss2
RewriteRule /comments/feed/?$ /index.php?feed=comments-rss2
RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
# RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index\.php\?p=$1&page=$2
# RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index\.php\?p=$1&page=$2
RewriteRule /([0-9]+).html /index\.php\?p=$1
RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1
RewriteRule /page/(.*) /index\.php\?paged=$1
RewriteRule /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 /date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
RewriteRule /date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
RewriteRule /([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1
RewriteRule /([0-9]+).html/trackback /wp-trackback\.php\?p=$1

RewriteRule /dz/(.*) /dz/$1 [L]
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /sitemap.html /sitemap.html [L]
RewriteRule /favicon.ico /favicon.ico [L]
RewriteRule /wp-(.*) /wp-$1 [L]
#RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]

随机文章

启用禁用网卡的批处理
启用禁用网卡的批处理

采用Intel HAXM对模拟器进行加速
采用Intel HAXM对模拟器进行加速

如何在不用密码的情况下删除360企业版(360天擎)
如何在不用密码的情况下删除360企业版(360天擎)

如何去掉搜狗拼音里面的搜狐新闻
如何去掉搜狗拼音里面的搜狐新闻

0基础搭建android开发平台
0基础搭建android开发平台

Firefox os和Tizen os将会怎样
Firefox os和Tizen os将会怎样

相关文章

AngularJs的provider里面的装饰器decorator
AngularJs的provider里面的装饰器decorator

百度开放云BAE下周四扩容
百度开放云BAE下周四扩容

中兴V880刷机图文教程
中兴V880刷机图文教程

查看android手机记住的wifi密码
查看android手机记住的wifi密码

修改Eclipse ADT default debug keystore路径
修改Eclipse ADT default debug keystore路径

内容分享:道招
本文链接:配置IIS的win主机下wordpress的伪静态rewrite规则
道招声明:除特别标注或作者不详外,本站所有文章均为原创,转载请注明。欢迎共同关注互联网!