remove unused rewrite rules