Fix ssl redirect condition