ecmall nginx 伪静态

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



ecmall nginx 伪静态
  1. location / {
  2. #商品详情
  3. rewrite ^/goods/([0-9]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=goods&id=$1last;
  4. rewrite ^/goods/([0-9]+)/([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=goods&id=$1&act=$2last;
  5. rewrite ^/goods/([0-9]+)/([^/]+)/page_([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=goods&id=$1&act=$2&page=$3last;
  6. rewrite ^/groupbuy/([0-9]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=groupbuy&id=$1last;

  7. #分类
  8. rewrite ^/category/goods/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=categorylast;
  9. rewrite ^/category/(.*)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=category&act=$1last;
  10. #品牌
  11. rewrite ^/brand/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=brandlast;
  12. #文章
  13. rewrite ^/article/([0-9]+).html[ DISCUZ_CODE_1 ]nbsp;/index.php?app=article&act=view&article_id=$1last;
  14. #店铺页面
  15. rewrite ^/store/([0-9]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1last;
  16. rewrite ^/store/article/([0-9]+).html[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&act=article&id=$1last;
  17. rewrite ^/store/([0-9]+)/credit/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=creditlast;
  18. rewrite ^/store/([0-9]+)/credit/page_([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=credit&page=$2last;
  19. rewrite ^/store/([0-9]+)/credit/([0-9]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=credit&eval=$2last;
  20. rewrite ^/store/([0-9]+)/credit/([0-9]+)/page_([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=credit&eval=$2&page=$3last;
  21. rewrite ^/store/([0-9]+)/goods/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=searchlast;
  22. rewrite ^/store/([0-9]+)/goods/page_([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=search&page=$2last;
  23. rewrite ^/store/([0-9]+)/category/([0-9]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=search&cate_id=$2last;
  24. rewrite ^/store/([0-9]+)/category/([0-9]+)/page_([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=search&cate_id=$2&page=$3last;
  25. rewrite ^/store/([0-9]+)/groupbuy/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=groupbuylast;
  26. rewrite ^/store/([0-9]+)/groupbuy/page_([^/]+)/?[ DISCUZ_CODE_1 ]nbsp;/index.php?app=store&id=$1&act=groupbuy&page=$2last;
  27. }
复制代码
来源:http://www.3oom.com/blog/55.html有错误可以跟帖或者留言提出

回答:
不错。虽然没研究ECMALL

谢谢分享,试试能否使用。