Rewrite url.