阳光网驿-企业信息化交流平台【DTC零售连锁全渠道解决方案】

 找回密码
 注册

QQ登录

只需一步,快速开始

扫描二维码登录本站

手机号码,快捷登录

手机号码,快捷登录

老司机
查看: 6540|回复: 14

[原创] 迄今为止最完美的ECSHOP伪静态规则适合2.7.2和2.7.1版本

  [复制链接]

该用户从未签到

发表于 2010-8-19 11:22:56 | 显示全部楼层 |阅读模式
这个伪静态规则是适用于IIS服务器上的!这个本人手写,亲自测试,绝对可用!不会的可以直接下载附件解压上传到你的商城根目录!
  1. [ISAPI_Rewrite]
  2. # ECSHOP
  3. RewriteRule /index.html$ /index.php [I]
  4. RewriteRule /group_buy.html$ /group_buy.php [I]
  5. RewriteRule /activity.html$ /activity.php [I]
  6. RewriteRule /auction.html$ /auction.php [I]
  7. RewriteRule /snatch.html$ /snatch.php [I]
  8. RewriteRule /exchange.html$ /exchange.php [I]
  9. RewriteRule /user.html$ /user.php [I]
  10. RewriteRule /flow.html$ /flow.php [I]
  11. RewriteRule /pick_out.html$ /pick_out.php [I]
  12. RewriteRule /tag_cloud.html$ /tag_cloud.php [I]
  13. RewriteRule /quotation.html$ /quotation.php [I]
  14. RewriteRule /myship.html$ /myship.php [I]
  15. RewriteRule /wholesale.html$ /wholesale.php [I]
  16. RewriteRule /message.html$ /message.php [I]
  17. RewriteRule /ecshop/feed.xml$ /feed.php [I]
  18. RewriteRule ^(.*)/feed-typeactivity.xml$ $1/feed\.php\?type=activity
  19. RewriteRule ^(.*)/feed-typeauction.xml$ $1/feed\.php\?type=auction
  20. RewriteRule ^(.*)/feed-typeexchange.xml$ $1/feed\.php\?type=exchange
  21. RewriteRule ^(.*)/feed-typegroup_buy.xml$ $1/feed\.php\?type=group_buy
  22. RewriteRule ^(.*)/feed-typearticle_cat([0-9]+).xml$ $1/feed\.php\?type=article_cat$2
  23. RewriteRule ^(.*)/feed-c([0-9]+).xml$ $1/feed\.php\?cat=$2
  24. RewriteRule ^(.*)/feed-b([0-9]+).xml$ $1/feed\.php\?brand=$2
  25. RewriteRule ^(.*)/feed.xml$ $1/feed\.php
  26. RewriteRule /ecshop/flow.html$ /flow.php [I]
  27. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [I]
  28. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 [I]
  29. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 [I]
  30. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4&sort=$5&order=$6 [I]
  31. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2&page=$3 [I]
  32. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4 [I]
  33. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2 [I]
  34. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3 [I]
  35. #RewriteRule /ecshop/category-([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1 [I]
  36. RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2 [I]
  37. #RewriteRule /ecshop/goods-([0-9]+)(.*)\.html$ /ecshop/goods.php?id=$1 [I]
  38. RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2
  39. #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/article_cat.php?id=$1&page=$2&sort=$3&order=$4 [I]
  40. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5 [I]
  41. #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ /ecshop/article_cat.php?id=$1&page=$2 [I]
  42. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3 [I]
  43. #RewriteRule /ecshop/article_cat-([0-9]+)(.*)\.html$ /ecshop/article_cat.php?id=$1 [I]
  44. RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2 [I]
  45. #RewriteRule /ecshop/article-([0-9]+)(.*)\.html$ /ecshop/article.php?id=$1 [I]
  46. RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$ $1/article\.php\?id=$2 [I]
  47. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$ /ecshop/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 [I]
  48. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4&sort=$5&order=$6 [I]
  49. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$ /ecshop/brand.php?id=$1&cat=$2&page=$3 [I]
  50. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4 [I]
  51. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)(.*)\.html$ /ecshop/brand.php?id=$1&cat=$2 [I]
  52. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3 [I]
  53. #RewriteRule /ecshop/brand-([0-9]+)(.*)\.html$ /ecshop/brand.php?id=$1 [I]
  54. RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2 [I]
  55. #RewriteRule /ecshop/tag-(.*)\.html$ /ecshop/search.php?keywords=$1 [I]
  56. RewriteRule ^(.*)/tag-(.*)\.html$ $1/search\.php\?keywords=$2 [I]
  57. RewriteRule ^(.*)/group_buy-([0-9]+)(.*)\.html$ $1/group_buy\.php\?act=view&id=$2
  58. RewriteRule ^(.*)/group_buy_page-([0-9]+)(.*)\.html$ $1/group_buy\.php\?act=list&page=$2
复制代码


111122222.jpg
httpd.rar (890 Bytes, 下载次数: 22)

评分

参与人数 1阳光币 +2 收起 理由
odmin + 2 不错,阳光需要你这样的贴子!

查看全部评分

楼主热帖
启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情
    开心
    2017-11-20 00:15
  • 签到天数: 2648 天

    [LV.Master]伴坛终老

    发表于 2010-8-19 22:29:13 | 显示全部楼层
    楼主有没有WP的?IIS6下的静态配置?
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情
    奋斗
    昨天 10:33
  • 签到天数: 1770 天

    [LV.Master]伴坛终老

    发表于 2010-8-20 08:34:12 | 显示全部楼层
    很好狠强大的说  楼主写的规则不错,支持了!谢谢!
    启用邀请码注册,提高发帖质量,建设交流社区

    该用户从未签到

     楼主| 发表于 2010-8-20 20:38:44 | 显示全部楼层
    回复 2# game2000


        这个就是IIS6下的规则啊!
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情
    开心
    2017-11-20 00:15
  • 签到天数: 2648 天

    [LV.Master]伴坛终老

    发表于 2010-8-22 17:32:45 | 显示全部楼层
    回复  game2000


        这个就是IIS6下的规则啊!
    alvin辉 发表于 2010-8-20 20:38

    wordpress?BLOG的一种.另这个规则和DZ的有冲突。
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情

    2011-1-23 23:07
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2011-1-23 23:07:43 | 显示全部楼层
    好东西 手下了好东西 手下了;P;P;P好东西 手下了;P;P;P;P
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情

    2011-1-23 23:07
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2011-1-23 23:15:37 | 显示全部楼层
    别处都找不到哈哈 终于找到你了 赞一个
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情
    擦汗
    2016-4-4 19:37
  • 签到天数: 249 天

    [LV.8]以坛为家I

    发表于 2011-1-29 16:46:19 | 显示全部楼层
    好,
    支持一下
    支持一下
    好,
    支持一下
    支持一下
    启用邀请码注册,提高发帖质量,建设交流社区

    该用户从未签到

    发表于 2011-3-13 20:09:33 | 显示全部楼层
    应该有用  下载试试
    应该有用  下载试试
    应该有用  下载试试
    启用邀请码注册,提高发帖质量,建设交流社区

    该用户从未签到

    发表于 2011-3-17 13:58:18 | 显示全部楼层
    很不错,可是太贵了,吧,很不错,可是太贵了,吧,
    启用邀请码注册,提高发帖质量,建设交流社区
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表