Mobile app version of vmapp.org
Login or Join
Chiappetta492

: Mod RewriteRule not working on all URL's this is my .htaccess Options +FollowSymLinks RewriteRule ^(.*)wp-content/uploads/(.*) watermark.php?src=wp-content/uploads/ # BEGIN WordPress <IfModule mod_rewrite.c>

@Chiappetta492

Posted in: #ModRewrite

this is my .htaccess

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

# 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/(.*) watermark.php?src=wp-content/uploads/




all my images are in subfolders within wp-content/uploads. an example of 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 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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta492

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angie530

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme