A method of redirecting a client request, directed from a client to a
first server, to a second server. The client request is received at the
second server and automatically forwarded or redirected to the first
server. The first server processes the request and generates a result
message, which may include a document formatted in a markup language. The
first server sends the result message to the second server. A process at
the second server identifies, in the result message, references to
resources of the first server. The references to resources of the first
server are replaced with translated references that reference the second
server, and the translated references are sent to the client as a
response to the client request. As a result, subsequent client requests
that are based on the response or the result message are always directed
to the second server rather than to the first server. Accordingly, the
second server can prevent the client from communicating directly with the
first server.