Re: URL rewrite question

2010-02-06 Thread Holger Just
On 2010-02-06 10:55, Willy Tarreau wrote: > reqrep ([^\ ]*)\ /action.register\?([^&]*&)*param2=bar(.*) \1\ > /newaction\?\2param2=bar\3 This does it. Looks like your Regex Kung Fu is stronger than mine. But well, it was late :) --Holger

Re: URL rewrite question

2010-02-06 Thread Willy Tarreau
Hi, On Thu, Feb 04, 2010 at 10:31:03PM +0100, Holger Just wrote: > On 2010-02-04 21:15, Sriram Chavali wrote: > > I am trying to rewrite URLs using haproxy's reqirep directive. The url that > > I am trying to rewrite is of the pattern > > /action/register?param1=foo¶m2=bar¶m3=baz > > > > The URL

Re: URL rewrite question

2010-02-04 Thread Holger Just
On 2010-02-04 21:15, Sriram Chavali wrote: > I am trying to rewrite URLs using haproxy's reqirep directive. The url that I > am trying to rewrite is of the pattern > /action/register?param1=foo¶m2=bar¶m3=baz > > The URL that I want to be rewritten is > /newaction?param1=foo¶m2=bar¶m3=baz on the

URL rewrite question

2010-02-04 Thread Sriram Chavali
I am trying to rewrite URLs using haproxy's reqirep directive. The url that I am trying to rewrite is of the pattern /action/register?param1=foo¶m2=bar¶m3=baz The URL that I want to be rewritten is /newaction?param1=foo¶m2=bar¶m3=baz on the condition that whenever param2=bar The ordering of th