# How to redirect with regex and any queries?

**URL:** <https://discourse.haproxy.org/t/how-to-redirect-with-regex-and-any-queries/6753>\
**Category:** Help!\
**Created:** [July 23, 2021, 12:38pm UTC](https://discourse.haproxy.org/t/how-to-redirect-with-regex-and-any-queries/6753 "2021-07-23T12:38:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeeN](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@MikeeN](https://discourse.haproxy.org/u/MikeeN)\
**Post date:** [July 23, 2021, 12:38pm UTC](https://discourse.haproxy.org/t/how-to-redirect-with-regex-and-any-queries/6753/1 "2021-07-23T12:38:18Z")

</div>

I have problem with write redirect locally on haproxy. I have to write a redirect from :

[http://just.xx.local/XXXXXXXX/assignment?ANY\_QUERY](http://just.xx.local/XXXXXXXX/assignment?ANY_QUERY)

ON :

[https://try.xx.local/test\_builds/latest/?ANY\_QUERY#XXXXXXXX](https://try.xx.local/test_builds/latest/?ANY_QUERY#XXXXXXXX)

Could you help me with this ? Any tips ?
