Added rewrite rules.