ВМ
Size: a a a
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ
location / {
try_files $uri @opencart;
}
location @opencart {
rewrite ^/(.+)$ /index.php?_route_=$1 last;
}
ВМ
MK
ВМ
ВМ
ВМ
ВМ
MK
ВМ
map $request_uri $opencart_route {
default '';
"~^/([^?]*)" $1;
}
ВМ
if ($request_uri ~ ^([^\?]*)/index\.(html|php)) { return 308 $1/$is_args$args; }
location / {
try_files $uri $uri/ /index.php?_route_=$opencart_route&$args;
location ~ (?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt)) { internal; }
location ~* \.(jpe?g|png|tiff|gif|webp|xml|html|yml|ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|ttf|rss|atom|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|rtf|pdf|txt|js|css|bmp|pnm|pbm|ppm)$ {
access_log off;
expires epoch;
}
location ~ ^/(.*)/$ { return 301 /$1$is_args$args; }
}
location /api/ { try_files $uri $uri/ /index.php?_route_=$opencart_route&$args; }
location = /sitemap.xml { try_files $uri /index.php?route=extension/feed/google_sitemap; }
location = /googlebase.xml { try_files $uri /index.php?route=extension/feed/google_base; }
location ^~ /system/storage/ { internal; }
ВМ
ВМ
ВМ
ВМ
ВМ