Forum Discussion
Vytautas_klior1
Mar 29, 2012Nimbostratus
Aaron - thanks for reply.
I will try to overview the whole situation and then maybe you could advise what should I do or use. I have two servers, NEW and OLD, NEW one is not ready to work and if client open browser and type www.host.com, this request is sent to NEW server by default, then NEW server redirects user to www.host.com /a1, and this request is sent to OLD server (I am matching URI /a1 to send to OLD server and using “string map /a1 /” to cut this “a1” , because OLD server need to get requests without “/a1”) I am using this “/a1” only for redirecting traffic to OLD server.
Now why I think that I need to insert this “/a1” to response – if user is clicking on some buttons in OLD server, it can be redirected to some resources, for example www.host.com/resource1 and this request will be sent to NEW server by default because there is no “/a1” in request uri and I need somehow to prevent this . I am trying to achieve that after first redirect to OLD server user will always be sending requests to OLD server until it closes connection at all.
Maybe have any other ideas how to do this?