Q:

Redirect in web.config because of certificate issues

I'm running some websites on a IIS 7.5 with one UCC SSL certificate, where 10 domains are secured. most of them are something.company.ch, some are something.anothercompany.ch
we have a redirect rule in our web.config which redirects every HTTP request to a HTTPS request
my problem is, that we have domains like company.de, company.com which are not secured by the SSL certificate, but those domains actually point to my company.ch site (site binding in IIS). 
if someone now opens the URL www.company.de he's getting a certificate error.
For best google rankings you should do the HTTPS redirect in web.config so we figured we need to do it like this. So we we're trying to redirect http://www.company.de first to http://company.ch and then to https://www.company.ch but unfortunately, this doesn't solve the issue.
Does anyone know how to solve this problem? Or a better way to get this done?
This is the web.config rule part
# Redirect of company.de to company.ch
<rule name="company.de to company.ch" patternSyntax="ECMAScript" stopProcessing="true">
    <match url=".*" />
    <conditions logicalGrouping="MatchAny">
        <add input="{HTTP_HOST}" pattern="^company.de$" />
    </conditions>
    <action type="Redirect" url="https://www.company.ch/{R:0}" />
</rule>

# Redirect everything to HTTPS
<rule name="Redirect to HTTPS" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
        <add input="{HTTPS}" pattern="^OFF$" />
    </conditions>
    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>

A:

Two things:

The redirect on the top still has https instead of http.
The HTTP_HOST condition will strictly match company.de and not hosts like www.company.de. While I may get my regex wrong (typing on the phone leads to typos), the regex should be something similar to ^(.*\.)?something.de$

