opencart在nginx下的伪静态规则



location / {

     if (-d $request_filename) {
     break;
      }
     if (-f $request_filename) {
     break;
      }
     rewrite ^/(.+)$ /index.php?_route_=$1 last;
 }

     location /admin/ {
     index index.php;
     }

 location ~* (\.(tpl|ini))$ {
       deny all;
 }
最后更改: in 2017/05/26 16:02