rewrite

added rewrite rules