added rewrite feature to vhost