domain name mismatch html error code?

I have a windows2000 box with sites that have certs and some that don't. When you try to access one of the sites that does not have a cert securely ( just using https instead of http) I get a domain name mismatch error and if you click the "ok" the error takes you to the site that the cert is installed on.

I thought that I would be able to change the html custom error messages and just redirect back to the site with the correct url. There are a couple of error codes that deal with the cert not working, and I think i try to redirect all of them, but for some reason I am still getting the mismatch popup message.

These are the error codes I redirected.
403.4
403.5
403.7
403.12
403.13
403.16
403.17

I tried the redirect on a 404 error just to make sure the redirect actually worked, and it does.

Any ideas or thoughts will be helpful

 

 

 

 

Top