Add rewrite directive to vhosts