Update to redirect to handle non-http domain host.