Hi Marius,

I don't know if it's possible to do it in one time, but I would do a mapping 
for the host 
(http://blog.haproxy.com/2015/01/26/web-application-name-to-backend-mapping-in-haproxy/)

Then rewriting the URL in the right backend section with something like :
reqrep ^([^\ ]*)\ /(.*).html\ (.*)      \1\ \2.new.html\ \3

I didn't tested the previous line but it should be somethink like that.

Vincent

On 04/05/2016 03:16 PM, marius matei wrote:
> Hello,
>
> I'd like to know if there is a method and how to redirect the requests
> coming to a static URL from  frontend to backend like this:
>
> http://example.com/url.html -> http://example/url.new.html
>
> the rest of the links should stay untouched.
>
> thanks in advance,
> Marius
>

-- 
Vincent Gallissot
System & network administrator
M6 Web - Groupe M6 <http://www.groupem6.fr/>
49 quai Rambaud 69002 LYON - FRANCE
Tel : +33(0)4 26 83 70 87


Reply via email to