Project Detail

Need a .htaccess RewriteRule  

Need a .htaccess RewriteRule is project number 137494
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: devaka

Budget: $30-100

Created: 04/09/2007 at 12:44 EDT

Bid Count: 2

Average Bid:
$ 30

04/14/2007 at 12:44 EDT

Project Creator: beecy
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (18 reviews)

Bid On This Project
 

Description

I have a site containing both full-size images as well as thumbnails of them. The images and their thumbnails live in the same directories.

I need a .htaccess rewrite rule that rewrites for:

http://SomeDirectory/Some-Subdirectory/Some-Image.jpg

but not:

http://SomeDirectory/Some-Subdirectory/Some-Image-thumb.jpg

My current rule is:

RewriteRule ^(SomeDirectory.*)/(.*.[jJ].*)$ /watermark.php?p=$1&i=$2

The problem is that it rewrites for thumbnails as well as the full-sized images. I currently work around this in watermark.php, but would rather not waste system resources invoking a php page for every thumbnail.




Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

1 day

04-09-2007 13:15 EDT

Give me FTP access and I will rewrite ".htaccess" today. Thumbnails will be excluded from RewriteRules

help

 

30

0 days

04-09-2007 13:13 EDT

Try that: RewriteRule ^(SomeDirectory.*)/([^/]+(?!thumb).jpg)$ /watermark.php?p=$1&i=$2

help


    Bid on this Project