Prestashop 1.x-9.x Nginx Conf Rules

invalid@example.com (l1admin689), l1admin689
Mon, 01 Sep 2025 15:37:13 +0000
PrestaShop讨论和请求

some one was request prestashop nginx conf ,now here is it

代码：

   rewrite ^/blog/(.+)/.*$ /modules/smartblog/images/$1.jpg last;
# for posthemes smartblog
rewrite ^/blog/.*/(.*\.(?:jpg|jpeg|png|gif|webp))$ /modules/ps_simpleblog/uploads/$1 last;
# for posthemes simple blog
     rewrite ^/(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$1$2.jpg last;
    rewrite ^/(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3.jpg last;
    rewrite ^/(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last...