Update the url rewriting