Possible rewrite regular expression bug?

Roxis roxis at list.ru
Mon Jun 23 18:57:01 MSD 2008


On Monday 23 June 2008, Peter Hoang wrote:
> I forgot to ask, how should I do the rewrite in NGINX?

if ($query_string ~ "&__Q=([^\-]+)-([^/]*)$") {
    set $new_args "$1=$2";
    rewrite / /j?$new_args last;
}





More information about the nginx mailing list