Rewrite rules flush