在IIS的Isapi上添加這個(gè)篩選器
篩選器名稱Rewrite
可執(zhí)行文件選擇 Rewrite.dll 即可以了
httpd.ini是配置文件,應(yīng)該不要我多說(shuō)了吧,很簡(jiǎn)單的
[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\%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro\.php\?$2=$3
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space\.php\?$2=$3
# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
RewriteRule ^(.*)-htm-(.*)$ $1\.php\?$2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index\.php\?$2
#防盜鏈
#RewriteCond Host: (.+)
#RewriteCond Referer: (?!http://\1.*).*
#RewriteRule .*\.(?:gif|jpg|png|exe|rar|zip) /block.gif [I,O]
- PC官方版
- 安卓官方手機(jī)版
- IOS官方手機(jī)版