Single RewriteRule convert please

wickedsunny nginx-forum at
Fri Dec 3 13:52:51 MSK 2010

0 down vote favorite

hello everyone, i just installed nginx up and running for serving static
content on my site. it works great but the apache rewrite rule about
images (ofcourse) stoped working.

and i don't have an idea how to convert  .

This is what i was using on apache :

RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
RewriteRule i/image_(\d+)\.(jpg|jpeg|gif) pic/$1 [L]

Its purpose is to redirect directly accessed images to the image page
instead. Helps is appreciated

Thanks in advance :) 

Posted at Nginx Forum:,155260,155260#msg-155260

More information about the nginx mailing list