Remote email service but Autodiscover is finding the cPanel SSL cert

When using cPanel AutoSSL and a remote email service, you may sometimes encounter a problem where outlook attempts to find the autodiscover info on the root domain instead of the actual cname. For example: on startup. If an SSL certificate isn’t found there outlook then looks to and an xml isn’t found it finally looks for, which is the correct place. However if a certificate is found in the first two checks outlook then checks to see if the certificate can be trusted. Since the SSL certificate from cPanel’s AutoSSL will not match the remote email service SSL, outlook will produce an error message.

To avoid this, you can create a simple htaccess redirect like so:

RedirectMatch 301 /autodiscover/