林海谐缘论坛's Archiver

linhai 发表于 2008-11-26 19:16

ISAPIRewrite FULL版本 下载 亲测可用

可以支持每个站点都单独加载,用户可以上传httpd.ini到web目录,就可以自己定义配置

可以让用户在后台自定义常见的REWRITE设置,像防盗链等功能都可以用;

ISAPI筛选是在全局站点属性中指定

[quote]在私有规则前加入
站点指定代码
RewriteCond Host: (?!www.).XXXX.com

以下是示例:


[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
#Dicuz论坛规则(通用)
RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
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
RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag\.php\?name=$2

# Rewrite 系统规则请勿修改 PHPCMS3.0
RewriteCond Host: (?!www.).<font style="color:black;background-color:ffff66">easykaoshi.com</font>
RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)\.html$ $1/show\.php\?itemid=$2&page=$3
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)/show-([0-9]+)\.html$ $1/show\.php\?specialid=$2


# Rewrite 系统规则请勿修改 heb12580
RewriteCond Host: (?!www.).heb12580.cn
RewriteRule ^(.*)/index\.html\?*(.*)$ $1/index\.php [L]
RewriteRule ^(.*)/tag\.html\?*(.*)$ $1/tag\.php [L]
RewriteRule ^(.*)/tag_(.+)\.html\?*(.*)$ $1/tag\.php\?tagname=$2 [L]
RewriteRule ^(.*)/cate_([0-9]+)\.html\?*(.*)$ $1/cate\.php\?cd=$2 [L]
RewriteRule ^(.*)/cate_([0-9]+)_([a-z]+)_([0-9]+)\.html\?*(.*)$ $1/cate\.php\?cd=$2&order=$3&page=$4 [L]
RewriteRule ^(.*)/shop_([0-9]+)\.html\?*(.*)$ $1/shop\.php\?shopid=$2 [L]
RewriteRule ^(.*)/viewreview_([0-9]+)\.html\?*(.*)$ $1/viewreview\.php\?reviewid=$2 [L]
RewriteRule ^(.*)/space_([0-9]+)\.html\?*(.*)$ $1/space\.php\?suid=$2 [L]
RewriteRule ^(.*)/space_([0-9]+)_([a-z]+)\.html\?*(.*)$ $1/space\.php\?suid=$2&n=$3 [L]
RewriteRule ^(.*)/membercard\.html\?*(.*)$ $1/membercard\.php [L]
RewriteRule ^(.*)/membercard_([0-9]+)\.html\?*(.*)$ $1/membercard\.php\?pcd=$2 [L]
RewriteRule ^(.*)/exchange\.html\?*(.*)$ $1/exchange\.php [L]
RewriteRule ^(.*)/exchange_([a-z]+)_([0-9]+)\.html\?*(.*)$ $1/exchange\.php\?action=$2&giftid=$3[L]
[/quote]

gingerzoo 发表于 2008-12-10 12:34

谢谢拉

raulronaldo 发表于 2008-12-30 19:17

谢谢啦。。。

[table=80%,#FFFFFF][tr][td][size=9pt][发帖际遇]: [url=http://www.linwan.net/event.php]raulronaldo去做家教, 得到缘币10元.
[/url][/font][/td][/tr][/table]

ddsllpp 发表于 2009-1-21 14:47

其实用iis7就不用这个了

ahhoogle 发表于 2009-3-6 17:39

要的钱也太多了

kth007 发表于 2009-3-27 22:37

没钱!

小兰严 发表于 2009-4-1 00:12

谢分享 !!!!支持

**** 该会员因违反林海谐缘论坛版规被禁止或删除 内容自动屏蔽 ****

页: [1]
林海奥博虚拟主机无预付免费八折代理,最低双线空间60元赠数据库,com域名55元cn域名20元

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Linwan Inc.