i used env.php to find out the root directory. And write this root path into .htacess like the following..
RewriteEngine on
RewriteRule ^(.*)\.jpg /home/public_html/products/image.php?%{REQUEST_FILENAME}
I put this .htaccess into the /images folder (here is all the .jpg image i want to put the watermark on), then i put image.php, watermark.png, watermark_s.png and noimg png into /products folder. However, I still couldn't make this watermark contribution work..
I am sure i got my root path correct. But still no luck to work out this contribution. Is there anything i was missing? Anyone can help?
Thank you!