It is redirected by the server itself, the browser simply follows the response headers.
If you are asking how the server is configured to acheive that, there are several possible mechanisms. It would depend on what http server they are using plus the architecture of their network. There is not a unique answer to that.
One example using Apache may be found
here.