bu kodun http veya https ile ilgisi yok
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
bu işinizi görebilir http ile giriliyorsa https yönlendirir