日期:2014-05-16  浏览次数:21064 次

mark几个apache伪静态例子
RewriteRule ^/bbs/$ /bbs/index.do [PT]
ErrorDocument 503 /notice.html
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule .* - [F]
RewriteRule /news/([0-9]+).html /news/newsDetail.do?investNewsId=$1 [PT]
RewriteRule /news/([0-9]+)_([0-9]+).html /news/newsDetail.do?investNewsId=$1&page=$2 [PT]
RewriteRule /bbs/ba_([0-9]+).html /bbs/ba.do?baId=$1 [PT]
RewriteRule /bbs/ba_([0-9]+)_([0-9]+).html /bbs/ba.do?baId=$1&page=$2 [PT]
RewriteRule /bbs/topic_([0-9]+).html /bbs/topic.do?topicId=$1 [PT]
RewriteRule /bbs/topic_([0-9]+)_([0-9]+).html /bbs/topic.do?topicId=$1&page=$2 [PT]
RewriteRule /bbs/topicLatest_([0-9]+).html /bbs/topicLatest.do?page=$1 [PT]

RewriteRule /enterprise/([0-9]+).html /enterprise/enterpriseDetail.do?enterpriseId=$1 [PT]
RewriteRule /person/([0-9]+).html /person/personDetail.do?investPersonId=$1 [PT]
RewriteRule /institution/([0-9]+).html /institution/institutionDetail.do?institutionId=$1 [PT]
RewriteRule /meet/([0-9]+).html /meet/meetDetail.do?meetId=$1 [PT]
RewriteRule /meet/([0-9]+)_([0-9]+).html /meet/meetDetail.do?meetId=$1&page=$2 [PT]
RewriteRule /case/([0-9]+).html /case/investCaseDetail.do?investCaseId=$1 [PT]
RewriteRule /case/([0-9]+)_([0-9]+).html /case/investCaseDetail.do?investCaseId=$1&page=$2 [PT]
RewriteRule /event/event_([0-9]+).html /event/eventDetail.do?enterpriseEventId=$1 [PT]
RewriteRule /event/event_([0-9]+)_([0-9]+).html /event/eventDetail.do?enterpriseEventId=$1&page=$2 [PT]
RewriteRule /event/ipo_([0-9]+).html /event/ipoDetail.do?ipoId=$1 [PT]
RewriteRule /event/ipo_([0-9]+)_([0-9]+).html /event/ipoDetail.do?ipoId=$1&page=$2 [PT]
RewriteRule /gem/([0-9]+).html /gem/articleDetail.do?id=$1 [PT]
RewriteRule /gem/([0-9]+)_([0-9]+).html /gem/articleDetail.do?id=$1&page=$2 [PT]
RewriteRule /eschool/([0-9]+).html /eschool/articleDetail.do?id=$1 [PT]
RewriteRule /eschool/([0-9]+)_([0-9]+).html /eschool/articleDetail.do?id=$1&page=$2 [PT]

RewriteRule /project/([0-9]+).html /project/projectDetail.do?id=$1 [PT]

以下是实例页面
http://www.investide.cn/bbs/ba_7654_2.html