# Rewriting HTTP responses

**URL:** <https://discourse.haproxy.org/t/rewriting-http-responses/3561>\
**Category:** Help!\
**Created:** [February 27, 2019, 4:33pm UTC](https://discourse.haproxy.org/t/rewriting-http-responses/3561 "2019-02-27T16:33:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysbes](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/sysbes/32/764_2.png) [@sysbes](https://discourse.haproxy.org/u/sysbes)\
**Post date:** [February 27, 2019, 4:33pm UTC](https://discourse.haproxy.org/t/rewriting-http-responses/3561/1 "2019-02-27T16:33:35Z")

</div>

Hello all! Can anybody help me?

I have this sheme:

 ![photo_2019-02-27_19-29-19](https://us1.discourse-cdn.com/flex016/uploads/haproxy/original/1X/28fc35a8a0fa1406837f19b930fc4b25624d2a93.jpeg)

I need rewrite [domain1.com/app](http://domain1.com/app) to [domain.com/app](http://domain.com/app) when [domain1.com/app](http://domain1.com/app) i’m get from backend as 302 - redirect.

In nginx i’m use: **proxy\_redirect** option for this, how i can make this in haproxy?
