Added rewrite rules