I have a small script setup to insert watermarks on images in a directory. Instead of viewing images/boy.jpg, my .htaccess will automatically call images/watermark.php?img=boy.jpg, and the watermark is displayed. This is working correctly. However, I want to NOT rewrite watermark.php OR any images with "_thumb" in the filename. Here's what I've got: RewriteRule ^(watermark|watermark/watermark)\.php$|^.+\.(css|js)$ - [L] RewriteRule ^(thumb|thumb/thumb)$|^.+\.(jpg|jpeg)$ - [L] RewriteRule ^(.+) watermark.php?img=$1 [L] Code (markup): Something with the syntax in the second line is not correct. The watermark is still being displayed on the images with "_thumb" in the filename. Any assistance please????
i cant find any error myself but i am not pro . Someone pro should help you soon. Maybe try to make a rewriting rule for that too: _thumb
The rewrite rule for _thumb is the second line of code I posted above, but thats what is not working.
How about this? RewriteRule ^(watermark|watermark/watermark)\.php$|^.+\.(css|js)$ - [L] RewriteCond %{REQUEST_FILENAME} !_thumb RewriteRule ^(.+) watermark.php?img=$1 [L]