URL based rerouting

I’m not HAProxy expert but maybe this helps:

https://discourse.haproxy.org/t/building-acls-using-others-acls/4092