大庆seo工程师在通过“/%category%/%post_id%.html”命令做伪静态时,发现无法生效,经过研究
在Win2003+IIS6环境下得通过如下方法才能实现WordPress的固定连接。
1.安装ISAPI_Rewrite
伪静态组件包:http://pan.baidu.com/s/1jGG5YRG
2.在网站根目录新建文件,输入以下内容并保存:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect and files
# from accessing through HTTP
# Rules to ensure that normal content gets through?0?2
RewriteRule /software-files/(.*) /software-files/$1 [L]
RewriteRule /images/(.*) /images/$1 [L]
RewriteRule [L]
RewriteRule [L]
# For file-based wordpress content . theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ [L]
RewriteRule /(.*) /$1 [L]