Parsing query_string or args

Fred Palmer fred at studionow.com
Fri Aug 24 01:20:55 MSD 2007


O.K.  I think the problem was I wasn't using the "set" command after the
match... I was trying this:

        if ($query_string ~ "..(..)..") {
            rewrite   ...    ...$1...
        }

Thanks,
Fred

On 8/23/07, Igor Sysoev <is at rambler-co.ru> wrote:
>
> On Thu, Aug 23, 2007 at 09:56:46AM -0500, Fred Palmer wrote:
>
> > I need to be able to write a rewrite rule based on the query_string.  Is
> > there an example of parsing it anywhere?  Can someone suggest a method
> for
> > doing that?
>
>         if ($query_string ~ "..(..)..") {
>             set       $var  $1;
>             rewrite   ...    ...$var...
>         }
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>


-- 
Fred Palmer | Senior Software Engineer
615.653.7228 | www.studionow.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070823/f83c8f4c/attachment.html>


More information about the nginx mailing list