How Do I Force HTTPS on My Website? Print

  • Force HTTPS, Redirect HTTP to HTTPS, SSL Redirect, HTTPS Only
  • 0

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)

  1. Log in to your cPanel.

  2. Look for the "Force HTTPS" or "HTTPS Redirect" icon (often under the "Security" or "Domains" section).

  3. You will see a list of your domains.

  4. Toggle the switch "On" for the domains you want to force to HTTPS.

  5. 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.

  1. Go to cPanel > File Manager > public_html .

  2. Find the .htaccess file (enable "Show Hidden Files" if you don't see it).

  3. Edit the file and add the following code at the top:

    apache
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
  4. 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.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution