raksmart活动促销

分享

写回答

发帖

求助谢rewrite规则

互联网出海创业 互联网出海创业 1443 人阅读 | 2 人回复

发表于 2010-10-29 20:35:15 | 显示全部楼层 |阅读模式

  1. [ISAPI_Rewrite]

  2. # 3600 = 1 hour
  3. CacheClockRate 3600

  4. RepeatLimit 32

  5. # Protect httpd.ini and httpd.parse.errors files
  6. # from accessing through HTTP

  7. # WRMPS 6.2.0 Rewrite 规则


  8. #城市分站
  9. RewriteRule ^(.*)/city_([0-9]+)/$ $1/Index\.asp\?ConversionCity=$2 [I]

  10. #简/完整版首页
  11. RewriteRule ^(.*)/index_([0-9]+)/$ $1/Index\.asp\?Briefness=$2 [I]

  12. #店铺
  13. RewriteRule ^(.*)/co_([0-9]+)/$ $1/Co/Index\.asp\?ID=$2 [I]

  14. #点评
  15. RewriteRule ^(.*)/re_([0-9]+)_([0-9]+)/$ $1/Company/Critique/Index\.asp\?ComID=$2&Page=$3 [I]

  16. #列表页,文章、信息、店铺、优惠券
  17. RewriteRule ^(.*)/([\.a-zA-Z0-9]*)_([0-9]+)_([0-9]+)_([0-9]+)/$ $1/$2/Class\.asp\?ID=$3&Page=$4 [I]

  18. #内容查看页
  19. RewriteRule ^(.*)/([\.a-zA-Z0-9]*)_([a-z0-9A-Z]+)_([0-9]+)/$ $1/$2/Show\.asp\?ID=$3&Page=$4 [I]

  20. #自助建站
  21. RewriteRule ^(.*)/co/([0-9]+)/([a-zA-Z]+)_([0-9]+).html$ $1/co/$2/$3\.asp\?SID=$4 [I]
  22. RewriteRule ^(.*)/co/([0-9]+)/([a-zA-Z]+)_list_([0-9]+)_([0-9]+).html$ $1/co/$2/$3\.asp\?sortid=$4&Page=$5 [I]

  23. #房产招聘
  24. RewriteRule ^(.*)/House/$ $1/$2/class/Class\.asp\?ID=1$4 [I]
  25. RewriteRule ^(.*)/Job/$ $1/$2/class/Class\.asp\?ID=38$4 [I]
复制代码
以上是网人的httpd.ini文件,希望大家能帮我写成web.config的,谢谢大家

回答|共 2 个

add.c

发表于 2010-10-30 09:25:20 | 显示全部楼层

帮你移动下

cqboy2003

发表于 2010-10-30 23:14:49 | 显示全部楼层

看不懂问题,等高人

开心私塾

发表于 2010-11-1 11:13:27 | 显示全部楼层

好像.asp的网站rewrite规则,看不懂。
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则