Force ssl if protocol set to HTTPS