Fixed rewrite rules.