Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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]
</IfModule>

# 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

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
    
Simple solutions are always the best –  John Conde May 15 '11 at 3:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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