We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05aead4 commit 98e09a1Copy full SHA for 98e09a1
1 file changed
install/deb/templates/web/nginx/php-fpm/prestashop.stpl
@@ -105,17 +105,15 @@ server {
105
}
106
107
location / {
108
- if (!-e $request_filename)
109
- {
110
- rewrite ^(.+)$ /index.php?q=$1 last;
111
- }
+ try_files $uri $uri/ /index.php?$args;
112
113
location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
114
expires 30d;
115
fastcgi_hide_header "Set-Cookie";
116
117
118
location ~ [^/]\.php(/|$) {
+ try_files $fastcgi_script_name /index.php$uri&$args =404;
119
fastcgi_split_path_info ^(.+\.php)(/.+)$;
120
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
121
if (!-f $document_root$fastcgi_script_name) {
0 commit comments