make rewrites play nice with vhosts