Redirect URL - domain and path using HAProxy 1.6

I’ve been asked to setup a redirect based on a path where the destination will be a different domain and path. I’ve used path_beg successfully for other redirects where the domain is changing but the path is staying the same, but I can’t get my head around how to get a full URL redirect to work.

The aim is to redirect https://subdom.domain.com/app1/sub_page/f?p=13000:101 to http://domain2.com/path/page.html.

I need to do the redirect based on /sub_page/f?p=13000:101 (or part of that) as /app1/other_sub_page is up and running.

Currently using HAProxy 1.6 (will be looking to upgrade, but don’t have time at the moment)

Any help appreciated.
Pete.