add rewrite rules