ผมเพิ่งแก้ปัญหานี้ไป โดยใช้ .htaccess ใส่ไว้ใน public_html แต่ของผมให้มันรีไดเรคไปที่ htts://www... ทั้งหมด
ยกตัวอย่าง
http://domain.com ==>
https://www.domain.com http://www.domain.com ==>
https://www.domain.com ถ้าต้องการแบบอื่นต้องแก้ไขเอานิดหน่อย
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# redirect http://www.example.com to [url]https://www.example.com[/url]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ [url]https://%{HTTP_HOST}%{REQUEST_URI}[/url] [R=301,L]
RewriteBase /
# redirect http(s)://example.com to [url]https://www.example.com[/url]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ [url]https://www.%{HTTP_HOST}%{REQUEST_URI}[/url] [R=301,L]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>