URI pattern baffling problem

Gregory Agerba gregory.agerba at gmail.com
Mon Feb 7 18:10:07 MSK 2011


Yes, my bad when I pasted the expression. My current rule is:

        if ($request_uri !~*
"^documents/([A-Z0-9-]{36})pages/([A-Z0-9-]{36})items/([A-Z0-9-]{36})" ) {
                        rewrite ^ http://www.google.com/ permanent;
        }

But it never matches anyway. If the expression match, I should just
continue, otherwise just redirect to (google) for instance.

Gregory

2011/2/7 Splitice <mat999 at gmail.com>

> Firstly you are missing slashes after each var/regex
>
> Sent from my iPod
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110207/a8d268bc/attachment.html>


More information about the nginx mailing list