Skip to content
HOSTIGAN
cPanel

How to install an SSL certificate and enable HTTPS in cPanel

Get a free SSL certificate with AutoSSL, install a paid one if you need it, redirect every visitor to HTTPS and fix mixed content warnings — step by step in cPanel.

Beginner 5 min read Updated November 24, 2026

HTTPS encrypts everything that travels between your visitors and your website: passwords, form data, cookies and the pages themselves. Browsers mark sites without it as "Not secure", and many modern features simply refuse to work over plain HTTP. On cPanel hosting, getting a certificate is usually automatic and free. This guide shows you how to check that it works, what to do when it doesn't, how to send all visitors to HTTPS, and how to clean up mixed content afterwards.

How SSL certificates work on cPanel

An SSL (properly: TLS) certificate proves that the server answering for example.com really is allowed to. A certificate authority only issues one after checking that you control the domain — for free certificates, by placing a small file on your site or a record in DNS and checking that it can be reached.

cPanel automates this with AutoSSL. It regularly checks every domain, subdomain and www variant on your account, requests certificates for those that are missing, and renews them before they expire. Free certificates are short-lived (typically 90 days), which is exactly why automatic renewal matters.

Certificate typeValidationCostRenewalWhen to use
DV via AutoSSLDomain controlFreeAutomaticAlmost all websites
Paid DVDomain controlPaidManual installSpecific warranty or compatibility needs
OV / EVDomain + organisationPaidManual installWhen the company name must be in the certificate

Before you start

AutoSSL can only validate a domain that points to your hosting. Check this first:

dig +short example.com A
dig +short www.example.com A

Both should return the IP address shown under General Information in cPanel. If you have IPv6 (AAAA) records, they must point to the same server too — or be removed — because the certificate authority may test over IPv6. If you have just moved the domain, give DNS time to update; see How to point your domain to your hosting.

Step 1: Check and issue the certificate

  1. Log in to cPanel and open Security › SSL/TLS Status.
  2. You'll see a list of every domain and subdomain on the account with a status icon. A green padlock means a valid certificate.
  3. To request missing certificates right away, click Run AutoSSL. It takes a minute or two.
  4. Refresh the page and check the result. Hover over or open the details for any domain that failed to see why.

Common reasons for failure, and the fix:

  • "The domain does not resolve to this server" — DNS points elsewhere. Fix the A record, then run AutoSSL again.
  • The validation request is blocked — a rule in .htaccess (often a redirect or a security plugin) stops requests to /.well-known/. Make sure that path is reachable.
  • CAA record — a CAA record in DNS only allows other certificate authorities. Add the one your host uses or remove the restriction.
  • Unused subdomains — names like cpcalendars.example.com or mail.example.com fail when they don't resolve. Either create the DNS record or exclude them from AutoSSL in the list so they don't clutter the report.

Note: Don't delete the .well-known folder in public_html. AutoSSL uses it for validation every time a certificate is renewed.

Step 2 (optional): Install a purchased certificate

If you have bought a certificate from a certificate authority, the process is manual:

  1. Go to Security › SSL/TLS.
  2. Under Certificate Signing Requests (CSR), generate a new key and CSR for your domain. cPanel stores the private key on the server.
  3. Send the CSR to the certificate authority and complete their validation.
  4. When you receive the certificate (.crt) and the CA bundle, go to Manage SSL sites, choose the domain, paste the certificate and click Autofill by Certificate. cPanel fetches the matching key and usually the CA bundle.
  5. Click Install Certificate.

Warning: AutoSSL does not renew a certificate you installed yourself. Put the expiry date in your calendar, or your site will show a security warning the day it runs out.

Step 3: Send every visitor to HTTPS

Having a certificate isn't enough — visitors who type http:// or follow old links should be redirected. Pick one of these methods.

Method A — Force HTTPS Redirect in cPanel. Open Domains › Domains and switch on Force HTTPS Redirect for the domain. The toggle is only available when a valid certificate covers the domain. This is the easiest option.

Method B — a rule in .htaccess. Gives you full control, for example if you also want to standardise on www or not. Add this at the top of public_html/.htaccess. The first rule sends all HTTP traffic to HTTPS; the second (optional) one drops www — use only one www rule:

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]

Using both methods, or adding a plugin that also redirects, is the classic cause of ERR_TOO_MANY_REDIRECTS. More on redirect rules in How to set up redirects in cPanel.

Step 4: Fix mixed content

After switching, some pages may show a padlock with a warning, or none at all. That is mixed content: the page loads over HTTPS, but some images, scripts, stylesheets or fonts are still requested over http://. Browsers block some of these outright.

To find them, open the page, press F12 and look at the Console tab — each insecure resource is listed with its URL.

In WordPress:

  1. Under Settings › General, make sure both the WordPress Address and Site Address start with https://.
  2. Replace old URLs stored in the database. Take a backup first, then use WP-CLI if you have SSH access and it is installed (otherwise a search-and-replace plugin does the same job). Run the dry run first, and the real command only if the result looks right:
wp search-replace 'http://example.com' 'https://example.com' --all-tables --dry-run
wp search-replace 'http://example.com' 'https://example.com' --all-tables
  1. Clear any page cache and CDN cache.

On static or custom sites: search your HTML, CSS and JavaScript for http:// and change internal links to https:// or relative paths. For external resources, check that the provider supports HTTPS.

Verification checklist

  • http://example.com redirects to https://example.com with a 301
  • http://www.example.com ends up at the same address
  • The padlock shows a valid certificate for the right domain
  • Subpages, images and forms load without warnings in the console
  • Your XML sitemap and internal links use https://

You can test the redirect chain from a terminal:

curl -sIL http://www.example.com | grep -E "^HTTP|^location"

If the site breaks after the switch, the guide Website not working? helps you find the cause.

In short

Make sure the domain and www point to your hosting, let AutoSSL issue the certificate, redirect HTTP to HTTPS with exactly one method, and clean up mixed content. As long as DNS keeps pointing to your host, AutoSSL renews the certificate on its own — you don't have to do anything.

HTTPS on Hostigan hosting

Hostigan's web hosting runs on cPanel, so SSL/TLS Status and the HTTPS redirect are in your panel. If a certificate won't issue and you can't see why, contact support.

Frequently asked questions

Usually not. Free domain-validated certificates from AutoSSL encrypt traffic exactly as well as paid ones. A paid OV or EV certificate only makes sense when you need the organisation's identity verified in the certificate.