RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Bu kodu .htaccess dosyasinin basina koydunuz mu ?