added rewrite rules for apache2 hosts