Browse Tag

ssl yönlendirme

https yönlendirme

Linux cpanel veya plesk panel için https yönlendirme

Cpanel için public_html klasörünün içinde bulunan .htaccess dosyasına aşağıdaki kodu eklemeniz tüm sayfaları https protokolüne yönlendirecektir.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Windows Sunucularda Https Yönlendirme

Windows sunucularda web.config dosyanıza aşağıdaki kodları ekleyebilirsiniz.Eğer daha önceden web.config dosyanız varsa aşağıdaki kodları düzeni bozmadan eklemeniz gerekiyor

<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTPyi HTTPSye Yonlendirme" 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>