rewrite server route