weijingtai category

  虽然在wordpress伪静态从2.x以后就内置了,但在iis环境之下仍然无法完美解决wordpress伪静态,市面上的iis伪静态规则我基本也都看过了,多少都有些问题,比如有些无法发布评论,有些无法进入后台,有些无法使用中文tag等等问题,此次发布的规则解决了上述三大问题。

  启用默认设置的wordpress伪静态固定链接后得到链接:“/index.php/***/wordpress-weijingtai-iis ”此链接中包含了“index.php”,这样的链接对搜索引擎优化极其不利,如何去掉呢?现在发布iis伪静态规则大家分享分享,此wordpress伪静态规则唯一不足的是不支持文章中文链接(文章链接需要自己填写为英文或者数字,当然也可以在固定链接里设置使用id号或者日期做为文章链接),但支持tag中文链接。
wordpress伪静态2.8版完美iis伪静态规则:

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# 中文tag解决
RewriteRule /tag/(.*) /index\.php\?tag=$1
# sitemapxml
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]

我有话要说