Yanlış URL'ler:
http://siteadi.com
http://www.siteadi.com
https://siteadi.com
Yukarıdaki 3 ihtimalde de https://www.siteadi.com a yönlendirmek istiyorum.
Plesk panelden www. ile başlatı seçtim ama oda çalışmıyor.
web.config dosyası ile de http'den https'ye yönlendirmeye çalıştım ama olmadı webconfig dosyamda hata mı yaptım bilmiyorum.
Ayrıca: https://siteadi.com yazdığımda direkt https://www.siteadi.com'a yönlendiriyor ancak siteadi.com yazdığımda www.siteadi.com'a yönlendirmiyor. lütfen yardım..
Web.Config Dosyası:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>