日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

URL Rewrite IIS下下偽靜態(tài)html設(shè)置方法

要使你的IIS服務(wù)器支持偽靜態(tài)重寫,按以下步驟來:;
1. 安裝重寫插件Rewrite.dll
如果你的 IIS 服務(wù)器加載過 Rewrite.dll 則可以不用下載 。;
Rewrite.dll文件:http://blog.hxxsh.com/UploadFiles/2006-10/1013525016.rar;
加載 Rewrite.dll;
在 IIS 的 Isapi 上添加篩選器;
篩選器名稱為:re;
可執(zhí)行文件選擇 Rewrite.dll 就可以了!;
2. 配置 httpd.ini
打開你的httpd.ini,找到;
[ISAPI_Rewrite];
# 3600 = 1 hour;
CacheClockRate 3600;
RepeatLimit 32;
# Protect httpd.ini and httpd.parse.errors files;
# from accessing through HTTP;
RewriteRule ^(.*)/archiver/([a-z0-9-] .html)$ $1/archiver/index.php?$2;
RewriteRule ^(.*)/forum-([0-9] )-([0-9] ).html$ $1/forumdisplay.php?fid=$2&page=$3;
RewriteRule ^(.*)/thread-([0-9] )-([0-9] )-([0-9] ).html$ $1/viewthread.php?tid=$2&extra=page=$4&page=$3;
RewriteRule ^(.*)/profile-(username|uid)-(. ?).html$ $1/viewpro.php?$2=$3;
以上是 Discuz!官方提供的配置代碼,注意正則格式 。;
【URL Rewrite IIS下下偽靜態(tài)html設(shè)置方法】3. 應(yīng)用
比如,將read.php?bl_id=123&bu_id=456 偽靜態(tài)成 /html/123/456.html;
可以這樣寫:;
RewriteRule ^(.*)/html/([0-9] )/([0-9] ).html$ $1/read.php?bl_id=$2&bu_id=$3 點(diǎn)擊收藏:“IIS下下偽靜態(tài)html(URL Rewrite)設(shè)置方法

    推薦閱讀