当前位置:首页 > 服务器日常问题 > IIS配置经验 > 正文内容

iis Z-BlogPHP 伪静态规则设置

xmwl2年前 (2022-07-09)IIS配置经验687

首先在网站后台的【静态管理中心】,管理设置伪静态启动/或者开启保存。

IIS6 保存一下代码为 httpd.ini 到网站根目录,自动生效。

<p style="list-style-type: none; color: rgb(102, 102, 102); font-family: 微软雅黑; font-size: 15px;"><span style="color: rgb(255, 0, 0);">[ISAPI_Rewrite]</span></p><p style="list-style-type: none; color: rgb(102, 102, 102); font-family: 微软雅黑; font-size: 15px;"><span style="color: rgb(255, 0, 0);">RewriteRule /page_([0-9]*)\.html /index\.php\?page=$1&rewrite=1&full_uri=$0 [I,L]
RewriteRule /date-([0-9\-]+)(?:_)?([0-9]*)\.html /index\.php\?date=$1&page=$2&rewrite=1&full_uri=$0 [I,L]
RewriteRule /author-([0-9]+)(?:_)?([0-9]*)\.html /index\.php\?auth=$1&page=$2&rewrite=1&full_uri=$0 [I,L]
RewriteRule /tags-([0-9]+)(?:_)?([0-9]*)\.html /index\.php\?tags=$1&page=$2&rewrite=1&full_uri=$0 [I,L]
RewriteRule /category-([0-9]+)(?:_)?([0-9]*)\.html /index\.php\?cate=$1&page=$2&rewrite=1&full_uri=$0 [I,L]
RewriteRule /post/([0-9]+)\.html(\?.*)? /index\.php\?id=$1&rewrite=1&full_uri=$0 [I,L]
RewriteRule /([0-9]+)\.html(\?.*)? /index\.php\?id=$1&rewrite=1&full_uri=$0 [I,L]</span></p>


版权声明:
本站资源和文章内容大部分收集于网络,
本站所有资源的版权均属于原作者所有,
本站资源只用于参考学习,请勿直接商用,
若由于商用引起版权纠纷,一切责任均由使用者承担。
若有侵权之处请联系站长我们会第一时间删除

本文由XM技术学习分享发布,如需转载请注明出处。

本文链接:http://xmwl.cc/iis/108.html

分享给朋友: