url rewrite refactoring ok