update rewriterule