Added rewrite to server.