handle HTTP redirection over virtual hosts