Skip to content
Shroti Host
SSL and security

How to force HTTPS on your website in cPanel

Steps last checked on by the Shroti Host team

Short answer

cPanel has a Force HTTPS Redirect switch for each domain, under Domains. Use the switch instead of writing redirect rules by hand. If you get 'too many redirects' after turning it on, a second redirect somewhere else is fighting it.

Before you start

All hosting plans. The domain needs a valid SSL certificate first: see how to install a free SSL certificate.

Steps

  1. Step 1: Log in to cPanel and open Domains.

  2. Step 2: Find the domain in the list and turn on Force HTTPS Redirect.

  3. Step 3: Remove any http-to-https rewrite rule you added to the .htaccess file earlier. Two redirects that chase each other cause a loop.

  4. Step 4: On WordPress, open Settings, then General, and set both WordPress Address and Site Address to the https:// form. Deactivate any plugin that does the same redirect.

  5. Step 5: If the site is behind a CDN or DNS proxy, set its SSL mode to Full. A Flexible mode connects to the server over http and creates the loop from the other side.

How to tell it worked

Type http://yourdomain.com (with http) into a private window. The address bar changes to https:// and the page loads with a padlock.

If it did not work

  • The switch is greyed out: the domain has no valid certificate yet. Run AutoSSL from SSL/TLS Status first.
  • Still looping after you removed the other redirects: clear the site's cache (and the CDN's, if you use one) and test again in a private window.

When to contact support

If the loop continues with only the cPanel switch turned on, open a ticket with the domain name.

We never ask for a password, a card number or an OTP. Do not put one in a ticket or a chat.

Shared hosting

Every plan includes free SSL, so every site can run on HTTPS.