# HA Proxy URL Redirect hide

**URL:** <https://discourse.haproxy.org/t/ha-proxy-url-redirect-hide/1333>\
**Category:** Help!\
**Created:** [June 17, 2017, 1:14pm UTC](https://discourse.haproxy.org/t/ha-proxy-url-redirect-hide/1333 "2017-06-17T13:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![majas](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@majas](https://discourse.haproxy.org/u/majas)\
**Post date:** [June 17, 2017, 1:14pm UTC](https://discourse.haproxy.org/t/ha-proxy-url-redirect-hide/1333/1 "2017-06-17T13:14:02Z")

</div>

Hello,

We have installed and configured an HA Proxy as Loadbalancer And Redirect

When calling a url should the Redirect

[test.de](http://test.de) ACL and REDIRECT

acl test\_host hdr(host) -i [www.test.de](http://www.test.de)  
acl cdh\_url path -i /cdh  
redirect location [http://www.test.de:8080/test](http://www.test.de:8080/test) code 302 if test\_host cdh\_url

Remain hidden and only the requested URL is displayed in the browser

Has anybody here maybe a tip

Thanks and greetings Andy

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [June 18, 2017, 8:20pm UTC](https://discourse.haproxy.org/t/ha-proxy-url-redirect-hide/1333/2 "2017-06-18T20:20:46Z")

</div>

So its not a redirect, but a rewrite.

Use the http-request directive:  
[https://cbonte.github.io/haproxy-dconv/1.6/configuration.html#4.2-http-request](https://cbonte.github.io/haproxy-dconv/1.6/configuration.html#4.2-http-request)
