web.config dosyasını aşağıdaki kodla değiştirin.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="https yönlendir" 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>
</rules>
</rewrite>
</system.webServer>
</configuration>
Tabi kodlarınızda http:// ile başlayan yerler varsa onları da https yapmanız gerekiyor. Dışarıdan link almışsanız onlar da https olmak zorunda.