Correctly handle redirections to the same server.