update rewrite rule