stsleeper94 Posted March 18, 2008 Share Posted March 18, 2008 Using the below <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteRule ^images/plogger_test_collection/plogge_test_album/([^/]+)/(.+\.jpg)$ watermark.php?img=$1&i=$2 [NC,L] RewriteCond %{SCRIPT_FILENAME} -f [OR] RewriteCond %{SCRIPT_FILENAME} -d RewriteRule .* - [L] RewriteRule feed/$ /plog-rss.php?path=%{REQUEST_URI} [L] RewriteRule .* /index.php?path=%{REQUEST_URI} [L] </IfModule> RewriteRule ^images/plogger_test_collection/plogge_test_album/([^/]+)/(.+\.jpg)$ watermark.php?img=$1&i=$2 [NC,L] Still not working however my images are in /images/test_collection/plogger_test_album and are in a more complex naming format all number, letter, underscore (eg 2005_0831_r001s20) so I don't know if ([^/]+)/(.+\.jpg) is 100% correct. I also now have my watermark.php and watermark.png in the /images/test_collection/plogger_test_album folder as well. Right now I am viewing the pictures with water marks at http://mysite.com/images/plogger_test_collection/plogger_test_album/watermark.php?img=2005_0831_r001s20 (without the .jpg, since I already have it in my php code) So when the user clicks http://mysite.com/images/plogger_test_collection/plogger_test_album/2005_0831_r001s20.jpg I want them forced to http://mysite.com/images/plogger_test_collection/plogger_test_album/watermark.php?img=2005_0831_r001s20 Quote Link to comment https://forums.phpfreaks.com/topic/96747-redirected-watermarking-mod-rewrite/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.