This is usually caused by the certificate having a Common Name of "domain.com" and the customer is going to www.domain.com