返回列表 发帖

[分享] 给大家看一个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
天空中不曾留下鸟飞的痕迹
但我们毕竟曾经努力的飞过

╱◥█◣ ╱◥█◣
︱田︱田︱︱田︱田︱
╬╬╬╬╬╬╬╬╬╬╬╬╬╬
      ● ╭○╮
    /█∨█\
      ∏    ∏  BLOG:http://blackleaf.thysea.com
天空中不曾留下鸟飞的痕迹
但我们毕竟曾经努力的飞过

返回列表 回复 发帖