The program written in thinkphp is used. below is the pseudo-static tengine. there is no problem with nginx. there is only the last rewrite ^ (. *) $ index. php on tengine? S $1 last; takes effect. html file rewriting has no effect. server {code ...}} the program written in thinkphp is used. below is the pseudo-static tengine, which is no problem in nginx. only the last rewrite ^ (. *) $/index. php? S = $1 last; effective. html file rewriting has no effect.
Server {
... Omitted part if (! -E $ request_filename) {rewrite ^/share-([0-9] + )\. html $/index. php/share/view/id/$1 last; rewrite ^/goods-([0-9] + )\. html $/index. php/goods/view/id/$1 last; rewrite ^/store-([0-9] + )\. html $/index. php/store/index/id/$1 last; rewrite ^/coupon -(. *)\. html $/index. php/coupon/view/hash/$1 last; rewrite ^/ring -(. *)\. html $/index. php/ring/index/brand/$1 last; rewrite ^/vip.html $/index. php/vip/index last; r Ewrite ^/static/(. *) $/static/$1 last; rewrite ^ (. *) $/index. php? S = $1 last; break;}... omitted part
}
Reply content:
The program written in thinkphp is used. below is the pseudo-static tengine. there is no problem with nginx. there is only the last rewrite ^ (. *) $/index. php on tengine? S = $1 last; effective. html file rewriting has no effect.
Server {
... Omitted part if (! -E $ request_filename) {rewrite ^/share-([0-9] + )\. html $/index. php/share/view/id/$1 last; rewrite ^/goods-([0-9] + )\. html $/index. php/goods/view/id/$1 last; rewrite ^/store-([0-9] + )\. html $/index. php/store/index/id/$1 last; rewrite ^/coupon -(. *)\. html $/index. php/coupon/view/hash/$1 last; rewrite ^/ring -(. *)\. html $/index. php/ring/index/brand/$1 last; rewrite ^/vip.html $/index. php/vip/index last; r Ewrite ^/static/(. *) $/static/$1 last; rewrite ^ (. *) $/index. php? S = $1 last; break;}... omitted part
}