On Thu, Nov 12, 2015 at 6:44 PM, Guillaume Bourque < guillaume.bour...@logisoftech.com> wrote:
> Hi, > > thanks for the suggestion but it did not work for me. I tried > > acl fr_top url_reg /?lang= > acl fr_top url_reg /?lang=$ > # off acl fr_top urlp_reg(lang\=$,?) -m > found > # off acl fr_top urlp_reg(lang\=$,?) -m > found > > but with no luck > > thanks > > --- > Guillaume Bourque, B.Sc., > Le 2015-11-12 à 02:18, Igor Cicimov <ig...@encompasscorporation.com> a > écrit : > > > On 12/11/2015 5:30 PM, "Guillaume Bourque" < > guillaume.bour...@logisoftech.com> wrote: > > > > Hello Bryan > > > > I’m running haproxy 1.5.4 and I can’t find any example on how to user > req.uri if you could give a examples on how to match a specific query to > redirect to another > > > > From http://domain/pages/store.php?lang=fr to http://domain/store/ > > > > That would be great ! > > > > TIA > > > > > > > > --- > > Guillaume Bourque, B.Sc., > > > > Le 2015-11-12 à 00:42, Bryan Talbot <bryan.tal...@ijji.com> a écrit : > > > >> On Wed, Nov 11, 2015 at 8:43 PM, Guillaume Bourque < > guillaume.bour...@logisoftech.com> wrote: > >>> > >>> Hi all, > >>> > >>> I can’t create an acl that will match this > >>> > >>> http://domain/?lang= > >>> > >>> I tried > >>> > >>> acl fr_top path_reg ^/.lang\=$ > >>> acl fr_top path_reg ^/\?lang\=$ > >>> > >>> acl fr_top path_beg /?lang\=$ > >>> > >>> > >> > >> > >> You can't match the query string with the 'path' matcher. Try 'req.uri' > or 'query' if you're using 1.6. > >> > >> > > > Try this: > > acl fr_top url_reg /pages/store.php?lang=fr > > > Ok, my last try :-) http-request redirect location /store code 301 if { capture.req.uri lang= -m found }