Apache http’den https’e yönlendirmek

Aşağıdaki blok ile sunucuya http’den gelen bağlantıları https olarak yönlendirebilirsiniz.

<VirtualHost *:80>

RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}

</VirtualHost>

Bir cevap yazın

E-posta hesabınız yayımlanmayacak.

This site uses Akismet to reduce spam. Learn how your comment data is processed.