BenimWebim adlı üyeden alıntı: mesajı görüntüle
sitende otomatik https yönlendirme yok mu
var ama bazı sayfaları https çevirmemek lazım oyun paneli oyun http olarak ayarlı https yapınca hata veriyor o yüzden bu kodu ekledik ama ilk başta index e girince https yapıyordu sonra yapmamaya başladı sadece indexi https yapsam yeter


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to https" stopProcessing="true">
<match url=".html" />
<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>