URL based rerouting

Hi Guys,
How do I change the haproxy.cfg file to ensure that,

if I hit x.x.x.x/f5 it hits my backend at g.h.i.j:4444

I defined a rule like below:

listen horizon
bind x.x.x.x:80
balance source
http-request del-header X-Forwarded-Proto if { ssl_fc }
acl acl_myApp path_beg /f5
use_backend myAppBackEnd if acl_myApp
server devindcontrol01 b.y.y.y:80 check inter 2000 rise 2 fall 5
server devindcontrol02 c.y.y.y:80 check inter 2000 rise 2 fall 5
server devindcontrol03 d.y.y.y:80 check inter 2000 rise 2 fall 5

backend myAppBackEnd
** server myAppServer1 g.h.i.j:4444 check**

Thanks,
Rohit

I’m not HAProxy expert but maybe this helps:

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