Fix ssl redirect.