core: fix for forced host/protocol redirects by mod_ssl