于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 (.*) https://www.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]


6 条评论

所以呢 · 2011/08/02 13:11

朋友呐,你这个方法还是解决不了中文标签的问题

[回复]

普若木特 回复:

我实现的挺好的啊,你把你的情况说详细点。

[回复]

所以呢 回复:

@i, 朋友,麻烦你加我下QQ x@thebijia.com
上午买的香港Win空间,,到现在也没弄好,希望你能帮我下!

[回复]

普若木特 回复:

@所以呢, 我申请加你QQ了啊,你咋还不让我通过验证呢 ❓

[回复]

所以呢 回复:

@i,
你没加我呀,,我这里没显示的,,验证问题答案是 very

[回复]

普若木特 回复:

@所以呢, 本文的代码今天刚更新的,你可以试试!

[回复]

发表评论

电子邮件地址不会被公开。 必填项已用*标注