wp ’标签

wordpress伪静态规则配置win服务器的解决方案

好久没有写博客了,换了服务器,进行了备案,所以安静了许久,但是上传了wordpress程序之后,问题出现了,就是伪静态失效问题,通过网上的搜索,整理后找到了解决方案,特此分享一下。不过我个人用的是win2003的服务器。

这是一段神奇的代码

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#解决中文tag无法访问的问题
RewriteRule /tag/[^/]+)/([^/]+)/?([0-9]+)?/ /index.php?tag=$1&paged=$3 [L]
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
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]

阅读全文