Update rewrite rules