http://example.com
http://www.example.com
https://www.example.com
to
https://example.com

Dönüştürmektedir ...

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
şeklinde kullanılması gerekiyor ...
config.php deki url de https://example.com/ olmak durumundadır.

Alıntı Linki : https://stackoverflow.com/questions/...with-ssl-https

Kod Test edilmiştir.