Board logo

标题: [分享] 给大家看一个Rewrite的规则(leobbs的) [打印本页]

作者: 黑色叶子    时间: 2007-5-10 10:41     标题: 给大家看一个Rewrite的规则(leobbs的)

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)/topic-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)\.htm$ $1/topic\.cgi\?forum=$2&topic=$3&start=$4&show=$5&replynum=$6
RewriteRule ^(.*)/leobbs\.htm$ $1/leobbs\.cgi
RewriteRule ^(.*)/leobbs-(.+)\.htm$ $1/leobbs\.cgi?action=$2
RewriteRule ^(.*)/announcements\.htm$ $1/announcements\.cgi
RewriteRule ^(.*)/announcements-(.+)\.htm$ $1/announcements\.cgi?forum=$2
RewriteRule ^(.*)/profile-(.*)\.htm$ $1/profile\.cgi\?action=show&member=$2
RewriteRule ^(.*)/view-([0-9]+)-([0-9]+)\.htm$ $1/view\.cgi\?forum=$2&topic=$3
RewriteRule ^(.*)/forums-([0-9]+)-([0-9]+)\.htm$ $1/forums\.cgi\?forum=$2&show=$3
RewriteRule ^(.*)/printpage-([0-9]+)-([0-9]+)\.htm$ $1/printpage\.cgi\?forum=$2&topic=$3




欢迎光临 黑色海岸线论坛 (http://bbs.thysea.com/) Powered by Discuz! 7.2