Upate rewrite rule