1 ay önce aynı sorunları yaşayan biri olarak sana en kolay yolu ve alternatif yolları yazayım.
Kolay yol ve tercih ettiğim yol Google konsola https olarak siteni ve sitemap adresini eklemen olacaktır. Başka hiçbir işlem yapmana gerek yok. Kısa sürede google bunu benimsiyor.
Diğer birkaç kod var. Hangisi çalışıyor bilmiyorum. Ama birinin çalıştığı kesin.
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>

DİĞER KOD:
<rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" negate="false" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
</rule>

VE SON OLARAK BUNUDA DENEYEBİLİRSİN:
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>