fix redirection same host check in case vhost