updating rewrite rules