Changed rewrite rules