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;
 }