.htaccess dosyasını oluşturun ve alt satırdaki kodları girin.

RewriteEngine On

RewriteCond %{SERVER_PORT} !^443$

RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}