The main reason for the issue is that the SSL certificate name does not match your server name. In other words your SSL certificate is likely for mail.companyname.com while your server name is servername.companyname.com.
Two questions: Are you applying the SSL security settings Default website or to Exchange? Do you have a Front-End/Back-End setup or just a single server?
For URL redirection, we've done it the following way:
- Open notepad.exe and type the word "redirect" w/o the quote.
- Save the file in your C:\Inetpub\wwwroot directory as redirect.htm.
- Right-click on the Default Web Site and go to properties.
- Go to Documents tab and add redirect.htm and make sure it appears on the top of the list.
- Next you'll need to create a simple .asp script to do the URL redirection. Check out http://support.microsoft.com/kb/555053 and http://suport.microsoft.com/kb/839357 articles and apply whatever fits your needs. If you're using Forms-based authentication, then go for the first link.
As for where you apply SSL... once you setup redirection as per above, there is no need to turn on SSL on Default Web Site, and you can just turn it on the Exchange site.
This might be enough to stop the issue you're having.
If that doesn't help, other than setting up Front-end/Back-end topology, I don't know what else will help. I was in your shoes before and everytime I needed to change something on the public folders, I'd have to go in, turn off SSL, make the changes and then turn it back on. A pain in the rear for sure and definitely one that compromises security.
Good luck.