move rewrite rules to rewrite file