Fix redirect if HTTPS_SERVER not set to https