Safari complains about SSL certificate on redirect page
There is nothing you can do except get a new certificate which covers both www and non-www.

Any redirects will only be done after a successful SSL handshake. But since your certificate does not match the name in the URL used by the client there will be no successful SSL handshake and thus no redirect.