update the rewriterules