Skip to content

Commit de05aec

Browse files
author
Roger
committed
Unexisting sitemap responds with product image
1 parent fe72c40 commit de05aec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nginx.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ location /media/ {
164164
# image_filter_jpeg_quality 90;
165165
# }
166166

167-
try_files $uri $uri/ /get.php$is_args$args;
167+
# try_files $uri $uri/ /get.php$is_args$args;
168168

169169
location ~ ^/media/theme_customization/.*\.xml {
170170
deny all;

pub/media/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SetHandler default-handler
3333
############################################
3434
## rewrite everything else to get.php
3535

36-
RewriteRule .* ../get.php [L]
36+
RewriteRule .*.(ico|jpg|jpeg|png|gif|svg|svgz|webp|avif|avifs|js|css|eot|ttf|otf|woff|woff2|zip|gz|gzip|bz2|csv|xml)$ ../get.php [L]
3737
</IfModule>
3838

3939
############################################

0 commit comments

Comments
 (0)