...And what about NGINX watermark rules translation? Nobody answer yet.
Hello,
If you use NGINX + PHP-FPM, you can add this to NGINX configuration file:
location ~* ^/images/(product|category|detailed|thumbnails)/.*(png|jpg|jpeg|gif)$ {
if (-f $request_filename) {
rewrite ^(.*)$ /index.php?dispatch=watermark.create;
}
}
Make sure that you pass REQUEST_URI header to your FastCGI process (PHP-FPM). One of your NGINX configuration files should include this line:
fastcgi_param REQUEST_URI $request_uri;
I haven't tested this solution yet, but I hope it works fine. Unfortunately, if you use NGINX as a reverse proxy for Apache, the solution won't work. I've informed CS-Cart developers about that.