全球主机交流论坛

标题: Windows环境下WordPress伪静态规则实现 [打印本页]

作者: klum    时间: 2014-2-25 13:49
标题: Windows环境下WordPress伪静态规则实现
Windows环境下WordPress伪静态规则文件内容如下:


[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

# -------------在此行以下添加伪静态规则------------

RewriteRule /tag/(.+)$ /index\.php\?tag=$1
# For category RewriteRule /category/(.*)/page/(\d+)$ /index\.php\?category_name=$1&paged=$2
RewriteRule /category/(.*) /index\.php\?category_name=$1
# For 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]





欢迎光临 全球主机交流论坛 (http://bbs.cuwww.com/) Powered by Discuz! X3.2