Switch to using the parsed host from the request, rather than the current site object, to work behind proxies which don't rewrite redirects