为了不扰乱会员对源码的测试,有问题咨询右侧客服不要直接回复,否则视为非法信息屏蔽会员ID! 下载了网人官方的,里面只有点点内容,剩下的都是我自己写的,之前一直在用,不过我嫌这个系统速度太慢了已经放弃了
伪静态规则扔那也是浪费,不如拿出来共享
首页如果不生成静态的话“#顶级无参页面”下面那行请自行注释掉- [ISAPI_Rewrite]
- # 3600 = 1 hour
- CacheClockRate 3600
- RepeatLimit 32
- # Protect httpd.ini and httpd.parse.errors files
- # from accessing through HTTP
- # WRMPS 6.2.0 Rewrite 规则
- # fishstone@163.com 制作
- #顶级无参页面
- RewriteRule ^(.*)/([a-zA-Z0-9]+)\.html$ $1/$2\.asp [I]
- RewriteRule ^(.*)/shop/$ $1/company/index\.asp [I]
- RewriteRule ^(.*)/shop$ $1/company/index\.asp [I]
- RewriteRule ^(.*)/help/$ $1/about/help\.asp [I]
- RewriteRule ^(.*)/help$ $1/about/help\.asp [I]
- #RewriteRule ^(.*)/([a-zA-Z0-9]+)\.html
- #城市分站
- RewriteRule ^(.*)/city_([0-9]+)/$ $1/Index\.asp\?ConversionCity=$2 [I]
- RewriteRule ^(.*)/city_([0-9]+)$ $1/Index\.asp\?ConversionCity=$2 [I]
- #简/完整版首页
- RewriteRule ^(.*)/index_([0-9]+)/$ $1/Index\.asp\?Briefness=$2 [I]
- RewriteRule ^(.*)/index_([0-9]+)$ $1/Index\.asp\?Briefness=$2 [I]
- #帮助
- RewriteRule ^(.*)/about/help_([0-9]+)\.html$ $1/about/help\.asp?id=$2 [I]
- #无参数页面
- RewriteRule ^(.*)/([a-zA-Z]+)/([a-zA-Z]+)\.html$ $1/$2/$3\.asp [I]
- #含show单词的页面
- RewriteRule ^(.*)/([a-zA-Z]+)/show_([0-9]+)\.html$ $1/$2/show\.asp?id=$3 [I]
- #团购
- RewriteRule ^(.*)/tuangou/tuangou_([0-9]+)\.html$ $1/tuangou/tuangou\.asp\?activeid=$2 [I]
- #招聘求职
- RewriteRule ^(.*)/job/company_([0-9]+)\.html$ $1/job/company\.asp\?id=$2 [I]
- RewriteRule ^(.*)/job/jianli_([0-9]+)\.html$ $1/job/jianli\.asp\?jobid=$2 [I]
- RewriteRule ^(.*)/job/zhiwei_([0-9]+)_([0-9]+)\.html$ $1/job/zhiwei\.asp\?userid=$2&zhiweiid=$3 [I]
- RewriteRule ^(.*)/job/job_([a-zA-Z]+)_([0-9]+)\.html$ $1/job/job_$2\.asp\?categoryid=$3 [I]
- #店铺
- RewriteRule ^(.*)/co_([0-9]+)/$ $1/company/co\.asp\?ID=$2 [I]
- RewriteRule ^(.*)/co_([0-9]+)$ $1/company/co\.asp\?ID=$2 [I]
- RewriteRule ^(.*)/company/([a-zA-Z]+)_([0-9]+)\.html$ $1/company/$2\.asp\?ID=$3 [I]
- RewriteRule ^(.*)/company/([a-zA-Z]+)_([0-9]+)_p([0-9]+)\.html$ $1/company/$2\.asp\?ID=$3&page=$4 [I]
- #照片库
- RewriteRule ^(.*)/photo/picsa_([0-9]+)_([0-9]+)\.html$ $1/photo/picsa\.asp\?colname=$2&page=$3 [I]
- RewriteRule ^(.*)/photo/picsa_([0-9]+)\.html$ $1/photo/picsa\.asp\?colname=$2 [I]
- #列表页及详细页面
- RewriteRule ^(.*)/([a-zA-Z]+)/list_([0-9]+)\.html$ $1/$2/list\.asp\?categoryid=$3&styleid=$3 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/list_([0-9]+)_p([0-9]+)\.html$ $1/$2/list\.asp\?categoryid=$3&styleid=$3&page=$4 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/show_([0-9]+)_([0-9]+)\.html$ $1/$2/show\.asp\?kind=$4&id=$3 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/bianming_([0-9]+)\.html$ $1/$2/show\.asp\?id=$3 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/listtit_([0-9]+)\.html$ $1/$2/list\.asp\?styleid=$3 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/index_([0-9]+)\.html$ $1/$2/index\.asp\?categoryid=$3 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/photo_([0-9]+)\.html$ $1/$2/photo\.asp\?id=$3 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/help_([0-9]+)_([0-9]+)\.html$ $1/$2/help\.asp\?id=$3&categoryid=$4 [I]
- #翻页
- RewriteRule ^(.*)/([a-zA-Z]+)/([a-zA-Z]+)_([a-zA-Z]+)_p([0-9]+)\.html$ $1/$2/$3_$4\.asp\?page=$5 [I]
- RewriteRule ^(.*)/([a-zA-Z]+)/([a-zA-Z]+)_p([0-9]+)\.html$ $1/$2/$3.asp\?page=$4 [I]
- #点评
- RewriteRule ^(.*)/re_([0-9]+)_([0-9]+)/$ $1/Company/Critique/Index\.asp\?ComID=$2&Page=$3 [I]
- RewriteRule ^(.*)/re_([0-9]+)_([0-9]+)$ $1/Company/Critique/Index\.asp\?ComID=$2&Page=$3 [I]
- #公告
- RewriteRule ^(.*)/notice/notice_([0-9]+)\.html$ $1/notice/notice\.asp\?id=$2 [I]
- #列表页,文章、信息、店铺、优惠券
- RewriteRule ^(.*)/([\.a-zA-Z0-9]*)_([0-9]+)_([0-9]+)_([0-9]+)/$ $1/$2/Class\.asp\?ID=$3&Page=$4 [I]
- RewriteRule ^(.*)/([\.a-zA-Z0-9]*)_([0-9]+)_([0-9]+)_([0-9]+)$ $1/$2/Class\.asp\?ID=$3&Page=$4 [I]
- #内容查看页
- RewriteRule ^(.*)/([\.a-zA-Z0-9]*)_([a-z0-9A-Z]+)_([0-9]+)/$ $1/$2/show\.asp\?ID=$3&Page=$4 [I]
- RewriteRule ^(.*)/([\.a-zA-Z0-9]*)_([a-z0-9A-Z]+)_([0-9]+)$ $1/$2/show\.asp\?ID=$3&Page=$4 [I]
- #自助建站
- RewriteRule ^(.*)/co/([0-9]+)/([a-zA-Z]+)_([0-9]+).html$ $1/co/$2/$3\.asp\?SID=$4 [I]
- RewriteRule ^(.*)/co/([0-9]+)/([a-zA-Z]+)_list_([0-9]+)_([0-9]+).html$ $1/co/$2/$3\.asp\?sortid=$4&Page=$5 [I]
复制代码 |