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