Welcome! Log In Create A New Profile

Advanced

please help me with follow rewrite rule.

October 06, 2010 12:50PM
here is the structure:
/images/thumbnails/
/watermark

i use follow rewrite rule to add a watermark on my pictures.

rewrite ^/images/(.*)\.jpg /wm/wm.php?$request_filename;

i found it will rewrite with images/*.jpg and image/thumbnails/*.jpg, but actually i only wanna rewrite images/*.jpg, not subdirectories. then i change it to:

rewrite ^/images/(.[^/])\.jpg /watermark/image.php?$request_filename;

my opinion is fit all character except "/" so that i can remove all subdirectories from the rewrite rule.

but unfortunately, it doesn't work well, /images/*.jpg can't be rewrited too.

is there anybody help me with this case?

thanks a lot.
regards
solo
Subject Author Posted

please help me with follow rewrite rule.

digginchina October 06, 2010 12:50PM

Re: please help me with follow rewrite rule.

Maxim Dounin October 06, 2010 01:18PM

Re: please help me with follow rewrite rule.

António P. P. Almeida October 06, 2010 01:50PM

Re: please help me with follow rewrite rule.

digginchina October 25, 2010 03:11AM

Re: please help me with follow rewrite rule.

digginchina October 25, 2010 06:52AM

Re: please help me with follow rewrite rule.

digginchina October 06, 2010 06:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready