flush rewrite rules properly