First, verify that SSL is correctly installed in cPanel: go to “SSL/TLS” > “Manage SSL Sites” and paste the certificate (CRT), private key (KEY), and CA bundle (CABUNDLE) into their respective fields. Then add the following code to your .htaccess file:
```perl
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
```
This will redirect all HTTP traffic to HTTPS.
Thank you for your feedback.
Sorry about that :( We'll work to make it better.
You voted before.
6 times viewed | 0 people fount it helpful