I
nstalling an SSL certificate is only half the battle. You must also force visitors to use the secure https:// version. Otherwise, they might still access the insecure http:// version.
Method 1: Using cPanel's Force HTTPS Feature (Easiest)
-
Log in to your cPanel.
-
Look for the "Force HTTPS" or "HTTPS Redirect" icon (often under the "Security" or "Domains" section).
-
You will see a list of your domains.
-
Toggle the switch "On" for the domains you want to force to HTTPS.
-
cPanel will automatically add the necessary redirect rules.
Method 2: Using .htaccess (For WordPress/Manual Sites)
If you cannot find the Force HTTPS tool, you can add a rule to the .htaccess file in your public_html folder.
-
Go to cPanel > File Manager >
public_html. -
Find the
.htaccessfile (enable "Show Hidden Files" if you don't see it). -
Edit the file and add the following code at the top:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] -
Save the file.
Method 3: WordPress Plugin
If you use WordPress, you can install a plugin like "Really Simple SSL." It detects your SSL and automatically configures your site to use HTTPS.