moved rewrite rules to virtual hosts