httpd.ini的用法
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里面即可。
后台需要开启静态化,这个设置是默认的设置,如果是自行设置的,请根据实际情况修改即可。