# Take content from specific URL and can see it with specific frontend URL

**URL:** <https://discourse.haproxy.org/t/take-content-from-specific-url-and-can-see-it-with-specific-frontend-url/6718>\
**Category:** Help!\
**Created:** [July 9, 2021, 3:48pm UTC](https://discourse.haproxy.org/t/take-content-from-specific-url-and-can-see-it-with-specific-frontend-url/6718 "2021-07-09T15:48:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leumas1984](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/leumas1984/32/1514_2.png) [@leumas1984](https://discourse.haproxy.org/u/leumas1984)\
**Post date:** [July 9, 2021, 3:48pm UTC](https://discourse.haproxy.org/t/take-content-from-specific-url-and-can-see-it-with-specific-frontend-url/6718/1 "2021-07-09T15:48:37Z")

</div>

ok first post here, doing a lot of searching, testing some solutions and nothing working for me.

Here what I try to do :

I have one server ([server1.com/bar](http://server1.com/bar)) and the thing I want is when the user type : [userurl.com/foo/bar](http://userurl.com/foo/bar) they see the content of : [server1.com/bar](http://server1.com/bar)

I use haproxy 2.4.0

I try with : http-request replace-header , http-request replace-path

thank you for your help and yes i’m a beginner with haproxy 🙂

---

<div class="post-metadata">

**Author:** ![Rfraile](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@Rfraile](https://discourse.haproxy.org/u/Rfraile)\
**Post date:** [July 16, 2021, 10:56am UTC](https://discourse.haproxy.org/t/take-content-from-specific-url-and-can-see-it-with-specific-frontend-url/6718/2 "2021-07-16T10:56:28Z")

</div>

It is a common requirement, set the following line before sending the content to the backend, it should work:

> http-request set-path “%[path,regsub(^/foo/,/)]”
