Refactor web document url rewritten