- 主题
- 0
- 积分
- 271
- 贝壳
- 271 个
- 性别
- 男
- 来自
- 深山 老林
- 注册时间
- 2002-11-8
- 最后登录
- 2009-1-6
|
[分享] 给大家看一个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 |
|