今天帮一个朋友设置的ecshop伪静态rewrite代码,希望官方把原来的加精去掉

2016-07-07 15:37 来源:www.chinab4c.com 作者:ecshop专家

今天帮一个朋友设置的ecshop伪静态rewrite代码,希望官方把原来的加精去掉
官方加精的伪静态规则都不行的,害我搞了大半天

演示地址:http://www.dvddvb.cn
  1. [ISAPI_Rewrite]
  2. # ECSHOP
  3. RewriteRule /index.html/index.php
  4. RewriteRule /default.html /index.php
  5. RewriteRule /ecshop/feed.xml/ecshop/feed.php
  6. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/category.php?

  7. id=$1&brand=$2&page=$3&sort=$4&order=$5
  8. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?

  9. id=$2&brand=$3&page=$4&sort=$5&order=$6
  10. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html[code][ISAPI_Rewrite]
  11. # ECSHOP
  12. RewriteRule /index.html/index.php
  13. RewriteRule /default.html /index.php
  14. RewriteRule /ecshop/feed.xml/ecshop/feed.php
  15. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/category.php?

  16. id=$1&brand=$2&page=$3&sort=$4&order=$5
  17. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?

  18. id=$2&brand=$3&page=$4&sort=$5&order=$6
  19. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;

  20. /ecshop/category.php?id=$1&brand=$2&page=$3
  21. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/category\.php\?

  22. id=$2&brand=$3&page=$4
  23. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;/ecshop/category.php?

  24. id=$1&brand=$2
  25. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/category\.php\?

  26. id=$2&brand=$3
  27. #RewriteRule /ecshop/category-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; /ecshop/category.php?id=$1
  28. RewriteRule ^(.*)/category-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; $1/category\.php\?id=$2
  29. #RewriteRule /ecshop/goods-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; /ecshop/goods.php?id=$1
  30. RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2

  31. #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/article_cat.php?

  32. id=$1&page=$2&sort=$3&order=$4
  33. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/article_cat\.php\?

  34. id=$2&page=$3&sort=$4&order=$5
  35. #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;/ecshop/article_cat.php?

  36. id=$1&page=$2
  37. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/article_cat\.php\?

  38. id=$2&page=$3
  39. #RewriteRule /ecshop/article_cat-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;/ecshop/article_cat.php?id=$1
  40. RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/article_cat\.php\?id=$2
  41. #RewriteRule /ecshop/article-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; /ecshop/article.php?id=$1
  42. RewriteRule ^(.*)/article-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; $1/article\.php\?id=$2
  43. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html /ecshop/brand.php?

  44. id=$1&cat=$2&page=$3&sort=$4&order=$5
  45. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html $1/brand\.php\?

  46. id=$2&cat=$3&page=$4&sort=$5&order=$6
  47. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html/ecshop/brand.php?id=$1&cat=$2&page=$3
  48. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$1/brand\.php\?id=$2&cat=$3&page=$4
  49. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)(.*)\.html /ecshop/brand.php?id=$1&cat=$2
  50. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3
  51. #RewriteRule /ecshop/brand-([0-9]+)(.*)\.html/ecshop/brand.php?id=$1
  52. RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand\.php\?id=$2
  53. #RewriteRule /ecshop/tag-(.*)\.html/ecshop/search.php?keywords=$1
  54. RewriteRule ^(.*)/tag-(.*)\.html$1/search\.php\?keywords=$2 nbsp;/ecshop/category.php?id=$1&brand=$2&page=$3
  55. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/category\.php\?

  56. id=$2&brand=$3&page=$4
  57. #RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;/ecshop/category.php?

  58. id=$1&brand=$2
  59. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/category\.php\?

  60. id=$2&brand=$3
  61. #RewriteRule /ecshop/category-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; /ecshop/category.php?id=$1
  62. RewriteRule ^(.*)/category-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; $1/category\.php\?id=$2
  63. #RewriteRule /ecshop/goods-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; /ecshop/goods.php?id=$1
  64. RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2

  65. #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/article_cat.php?

  66. id=$1&page=$2&sort=$3&order=$4
  67. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/article_cat\.php\?

  68. id=$2&page=$3&sort=$4&order=$5
  69. #RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;/ecshop/article_cat.php?

  70. id=$1&page=$2
  71. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/article_cat\.php\?

  72. id=$2&page=$3
  73. #RewriteRule /ecshop/article_cat-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;/ecshop/article_cat.php?id=$1
  74. RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp;$1/article_cat\.php\?id=$2
  75. #RewriteRule /ecshop/article-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; /ecshop/article.php?id=$1
  76. RewriteRule ^(.*)/article-([0-9]+)(.*)\.html[DISCUZ_CODE_1]nbsp; $1/article\.php\?id=$2
  77. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html /ecshop/brand.php?

  78. id=$1&cat=$2&page=$3&sort=$4&order=$5
  79. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html $1/brand\.php\?

  80. id=$2&cat=$3&page=$4&sort=$5&order=$6
  81. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html/ecshop/brand.php?id=$1&cat=$2&page=$3
  82. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$1/brand\.php\?id=$2&cat=$3&page=$4
  83. #RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)(.*)\.html /ecshop/brand.php?id=$1&cat=$2
  84. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3
  85. #RewriteRule /ecshop/brand-([0-9]+)(.*)\.html/ecshop/brand.php?id=$1
  86. RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand\.php\?id=$2
  87. #RewriteRule /ecshop/tag-(.*)\.html/ecshop/search.php?keywords=$1
  88. RewriteRule ^(.*)/tag-(.*)\.html$1/search\.php\?keywords=$2
复制代码

回答:
好贴子。我要顶起来。哈哈。。。

支持一下,,,可惜你的那个网站好慢好慢呢...

我竟然看到 建站铺 的人也在哦。哈哈。。

我经常去那里的啊。

代码已经被复制使用了。

应该可以用啊,`

应该可以


一样的问题,就是分类列表的时候切换显示方式不行

官方提供的rewrite代码是有问题的,尤其是跟discuz一起用的时候。

是的呀。。这个有冲突的

不会有冲突的,你可以在IIS下单独分开 规则的


我的小站 www.rock01.com 摇滚城

也就是说不要使用 DZ的rewrite

这个具体怎么用啊?
我的站是: www.eegou.cn

同问, 是需要吧这个代码覆盖到哪个文件里?

我想把我的网站。华夏宏运动专卖www.huaxiahong.com 也搞成静态的,谁来教我呀??