made if in sslredirect simpler