I have an SSL certificate that holds
www.dominio.com.br
domain.com
sub1.domain.com
sub2.domain.com
sub3.domain.com
But there are links (in which I do not have control) that access the subdomains via WWW, that is, and in this case the browser displays an unsecured site message because my certificate does not cover WWW for subdomains.
How do I create a redirect only for the www sub-domains for non-www independent if the access is via http or https?
I have full access to the site and DNS servers.
Note: The IIS URL Rewrite module does not work because the client continues to access www.