TEXT   67

app conf

Guest on 25th May 2022 01:39:02 AM

  1. location / {
  2. if (!-e $request_filename) {
  3.  
  4. rewrite ^/index.html$ /index.php?m=Index&a=index last;
  5. rewrite ^/id/(.*).html$ /index.php?m=Index&a=order&id=$1 last;
  6. rewrite ^/query.html$ /index.php?m=Index&a=query last;
  7. rewrite ^/category.html$ /index.php?m=Index&a=category last;
  8. rewrite ^/category-([0-9]+).html$ /index.php?m=Index&a=category&id=$1 last;
  9. rewrite ^/article.html$ /index.php?m=Index&a=article last;
  10. rewrite ^/article-([0-9]+).html$ /index.php?m=Index&a=article&id=$1 last;
  11. rewrite ^/detail-([0-9]+).html$ /index.php?m=Index&a=detail&id=$1 last;
  12. rewrite ^/single/(w+).html$ /index.php?m=Order&a=index&id=$1 last;
  13. rewrite ^/single/(w+)-([0-9]+).html$ /index.php?m=Order&a=index&id=$1&uid=$2 last;
  14. rewrite ^/detail/(w+).html$ /index.php?m=Order&a=index&tpl=detail&id=$1 last;
  15. rewrite ^/detail/(w+)-([0-9]+).html$ /index.php?m=Order&a=index&tpl=detail&id=$1&uid=$2 last;
  16. rewrite ^/result/([0-9]+).html$ /index.php?m=Index&a=result&order_no=$1 last;
  17. rewrite ^/pay-([0-9]+).html$ /index.php?m=Index&a=pay&order_no=$1 last;
  18. rewrite ^/single/(w+)/(w+)/(w+).html$ /index.php?m=Order&a=index&id=$1 last;
  19. rewrite ^/single/(w+)-([0-9]+)/(w+)/(w+).html$ /index.php?m=Order&a=index&id=$1&uid=$2 last;
  20. rewrite ^/detail/(w+)/(w+)/(w+).html$ /index.php?m=Order&a=index&tpl=detail&id=$1 last;
  21. rewrite ^/detail/(w+)-([0-9]+)/(w+)/(w+).html$ /index.php?m=Order&a=index&tpl=detail&id=$1&uid=$2 last;
  22. rewrite ^/a/([0-9]+)$ /Api/confirm.php?id=$1 last;
  23. #rewrite ^/(.*).html$  /index.php?s=$1  last;
  24.  
  25. rewrite ^/Order/id-(.*).html$ /index.php?m=Order&a=pay&order_no=$1 last;
  26. rewrite ^/Order/wxpay-(.*).html$ /index.php?m=Order&a=payWxPayJsApi&order_id=$1 last;
  27. rewrite ^/Order/orderQuery-(.*).html$ /index.php?m=Order&a=orderQuery&order_no=$1 last;
  28. rewrite ^/Order/orderQuery.html$ /index.php?m=Order&a=orderQuery last;
  29. rewrite ^/Order/result/order_no/(.*).html$ /index.php?m=Order&a=result&order_no=$1 last;
  30. rewrite ^/Order/result/order_no/(.*)/uid/(.*).html$ /index.php?m=Order&a=result&order_no=$1&uid=$2 last;
  31. rewrite ^/Order/payWxPayWap-([0-9]+).html$ /index.php?m=Order&a=payWxPayWap&order_id=$1 last;
  32.  
  33. rewrite ^/item/index.html$ /index.php?m=Item&a=index last;
  34. rewrite ^/item/id-(.*).html$ /index.php?m=Item&a=order&id=$1 last;
  35. rewrite ^/item/index.html$ /index.php?m=Item&a=index last;
  36. rewrite ^/item/query.html$ /index.php?m=Item&a=query last;
  37. rewrite ^/item/category.html$ /index.php?m=Item&a=category last;
  38. rewrite ^/item/category-(.*).html$ /index.php?m=Item&a=category&cid=$1 last;
  39. rewrite ^/item/getCategoryList.html$ /index.php?m=Item&a=getCategoryList last;
  40. rewrite ^/item/article.html$ /index.php?m=Item&a=article last;
  41. rewrite ^/item/detail-(.*).html$ /index.php?m=Item&a=detail&id=$1 last;
  42.  
  43. rewrite ^/wap/index.html$ /index.php?m=Wap&a=index last;
  44. rewrite ^/wap/id-(.*).html$ /index.php?m=Wap&a=order&id=$1 last;
  45. rewrite ^/wap/index.html$ /index.php?m=Wap&a=index last;
  46. rewrite ^/wap/query.html$ /index.php?m=Wap&a=query last;
  47. rewrite ^/wap/category.html$ /index.php?m=Wap&a=category last;
  48. rewrite ^/wap/category-([0-9]+).html$ /index.php?m=Wap&a=category&cid=$1 last;
  49. rewrite ^wap/article.html$ /index.php?m=wap&a=article last;
  50. rewrite ^wap/detail-(.*).html$ /index.php?m=wap&a=detail&id=$1 last;
  51.  
  52. }
  53. }

Raw Paste


Login or Register to edit or fork this paste. It's free.