this is my .htaccess

Options +FollowSymLinks
RewriteRule ^(.*)wp-content/uploads/(.*) $1watermark.php?src=wp-content/uploads/$2

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

this line is my issue

RewriteRule ^(.*)wp-content/uploads/(.*) $1watermark.php?src=wp-content/uploads/$2

all my images are in subfolders within wp-content/uploads. an example of http://darrenkynochphotography.co.uk/wp-content/uploads/2008/09/darrenprofile.jpg does what it should and redirects the image through a watermark script.

But this example http://darrenkynochphotography.co.uk/wp-content/uploads/2011/05/23-2-950x635.jpg doesnt work at all, along with any other images. I cant see where i am going wrong here at all as it should work


The RewriteEngine directive enables or disables the runtime rewriting engine. If it is set to off this module does no runtime processing at all.


Default: RewriteEngine off

Apache mod_rewrite documentation

If you have directives which appear before a RewriteEngine on directive, they will be ignored.

  • Simple solutions are always the best
    – John Conde
    May 15 '11 at 3:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.