Updating rewrite rules