Jump to content

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/96747-redirected-watermarking-mod-rewrite/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.