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