伪静态规则问题求助

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

我用的是360模板,看网站www.jp163.net,目录做的伪静态规则实在太长http://jpsc2010.118207.84g.com/goods-735-HY-2107%25B5%25E7%25C4%25D4%25B6%25E0%25C3%25BD%25CC%25E520%25D3%25D0%25D4%25B4%25D2%25F4%25CF%25E4.html
而我见http://ititgo.com.cn/goods-2010.html这个网站的伪静态就很好,谁能提供我这样的伪静态规则呢或帮我修改一下我的这份伪静态规则:谢谢!

  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
复制代码

回答:
看看我的伪静态,很容易就搞定了, 签名的

楼上的这个是什么弄的?有教程吗?谢谢!

顶一下,我也有同样的问题

有同样的问题,顶一下,希望能具体说下