Bo-Blog ISAPI_Rewrite 规则

快乐无极 , 2010/09/06 23:17 , 服务器 » IIS , 评论(0) , 阅读(61487) , Via 本站原创 | |
昨天失误,将博客的伪静态PHP给改坏,要还原回来,可在BO官网找了半天,硬是没找到原2.11的iisrewrite.php,找到的都是2.10的,已经不太管用。我记得之前是在一个测试区域发布的,但总也找不到,BO也N久不更新了。没办法,只能用ISAPI_Rewrite来搞,这样效率更高一点。 来自:http://bbs.bo-blog.com/viewthread.php?tid=23624
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
#Bo-Blog 2.1.1 Release ISAPI_Rewrite
RewriteRule /post/([0-9]+)/?([0-9]+)?/?([0-9]+)?/ /read.php\?entryid=$1&page=$2&part=$3
RewriteRule /page/([0-9]+)/([0-9]+)/ /index.php\?mode=$1&page=$2
RewriteRule /starred/([0-9]+)/?([0-9]+)?/ /star.php\?mode=$1&page=$2
RewriteRule /category/([^/]+)/?([0-9]+)?/?([0-9]+)?/ /index.php\?go=category_$1&mode=$2&page=$3
RewriteRule /archiver/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/ /index.php\?go=archive&cm=$1&cy=$2&mode=$3&page=$4
RewriteRule /date/([0-9]+)/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/ /index.php\?go=showday_$1-$2-$3&mode=$4&page=$5
RewriteRule /user/([0-9]+)/ /view.php\?go=user_$1
RewriteRule /tags/([^/]+)/?([0-9]+)?/?([0-9]+)?/ /tag.php\?tag=$1&mode=$2&page=$3
RewriteRule /component/id/([0-9]+)/ /page.php\?pageid=$1
RewriteRule /component/([^/]+)/ /page.php\?pagealias=$1

#Customized URL
RewriteRule /([^/|.]*)/?([0-9]+)?/?([0-9]+)?/ /read.php\?blogalias=$1&page=$2&part=$3

IIS的ReWrite下载:http://www.eisafe.com/safe/application/rewrite.rar
Tags: , ,
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]