Authored by hf

fixes bug to brands search page link error

... ... @@ -211,6 +211,14 @@ server
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location ^~ /index/search {
proxy_redirect off;
proxy_pass http://yohobuy;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
# 其它访问都跳到老版
location / {
... ...
... ... @@ -63,17 +63,17 @@ routes.cate.route.action = Index
; 品牌一览
routes.brands.type = "rewrite"
routes.brands.match = "/brands"
routes.brands.match = "/brands$"
routes.brands.route.module = Category
routes.brands.route.controller = Brand
routes.brands.route.action = Index
; 品牌一览搜索页
routes.brands.type = "rewrite"
routes.brands.match = "/brands/search"
routes.brands.route.module = Category
routes.brands.route.controller = Brand
routes.brands.route.action = Search
routes.brandsearch.type = "rewrite"
routes.brandsearch.match = "/brands/search"
routes.brandsearch.route.module = Category
routes.brandsearch.route.controller = Brand
routes.brandsearch.route.action = Search
; 新品到着(NEW)
routes.productnew.type = "rewrite"
... ...