Htacces dosyasına aşağıda ki kodu ekleyin


# HTTP'yi HTTPS'ye Yönlendirme Kodu
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Son: HTTP'yi HTTPS'ye Yönlendirme Kodu