zblog2.0放于二级目录静态化httpd.ini的设置方法
这里的httpd.ini必须放于根目录,而不是二级目录下面
httpd.ini的设置代码:
RewriteRule ^(.*?)default_([0-9]+).html $1catalog\.asp\?page=$2
RewriteRule ^(.*?)category-([0-9]+)\.html $1catalog\.asp\?cate=$2
RewriteRule ^(.*?)category-([0-9]+)_([0-9]+)\.html $1catalog\.asp\?cate=$2&page=$3
RewriteRule ^(.*?)author-([0-9]+)\.html $1catalog\.asp\?auth=$2
RewriteRule ^(.*?)author-([0-9]+)_([0-9]+)\.html $2catalog\.asp\?auth=$2&page=$3
RewriteRule ^(.*?)tags-(.*)\.html $1catalog\.asp\?tags=$2
RewriteRule ^(.*?)tags-(.*)_([0-9]+)\.html $1catalog\.asp\?tags=$2&page=$3
RewriteRule ^(.*?)([0-9\-]+)\.html $1catalog\.asp\?date=$2
RewriteRule ^(.*?)([0-9\-]+)_([0-9]+)\.html $2catalog\.asp\?date=$2&page=$3
直接复制,粘贴到httpd.ini里面即可。
后台需要开启静态化,这个设置是默认的设置,如果是自行设置的,请根据实际情况修改即可。
你最好用dw在编辑一下,由于dw打开有点慢我是在文本状态下帮你复制的。希望对你有用。
[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]
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)