How to Enable SSL in cPanel with AutoSSL and Move Your Site to HTTPS
- Ali GhanimatiAuthor
- Last updated
- 4 minutesReading time
- 431Views
- Ali Ghanimati
- Last updated:
- 4 min read
- 431 views
Your site is ready, but the browser shows “Not secure” next to its address and the contact form throws a warning too. Visitors who see that won’t trust your site, and Google prefers HTTPS sites as well. Luckily, on cPanel hosting a free SSL certificate is a few clicks away!
In this tutorial we explain what an SSL certificate is, how to issue one in cPanel with AutoSSL, how to redirect your site to HTTPS and how to find the problem if the certificate isn’t issued.
Short answer: in cPanel, open SSL/TLS Status from the Security section, tick your domain and click Run AutoSSL; the free certificate is usually issued within a minute or two and renews itself. Then turn on Force HTTPS Redirect in the Domains section so all visits go to HTTPS. For the certificate to be issued, the domain must point to this hosting.
What is SSL and why do you need it?
An SSL certificate, which today actually works with the TLS protocol, confirms your site’s identity and encrypts the connection between the browser and the server, so passwords, form data and payments can’t be read on the way. Once it’s active, your site’s address changes from http to https. We explain the difference in What Are HTTP and HTTPS.
How to enable SSL in cPanel with AutoSSL
Log in to cPanel and click SSL/TLS Status in the Security section.

In the list, tick the domains and subdomains that need a certificate, such as yourdomain.com and www.yourdomain.com.

Click Run AutoSSL. Issuing the certificate usually takes a minute or two; when you see a green lock and AutoSSL Domain Validated next to the domain, you’re done.

AutoSSL certificates are valid for a few months and renew themselves before they expire; you don’t need to do anything. To install SSL in cPanel on subdomains such as mail, the same steps are all it takes.
Moving your site to HTTPS
The easy way: Force HTTPS Redirect
In cPanel, open Domains and turn on the Force HTTPS Redirect switch next to your domain. This option only becomes available once the domain has a valid certificate.
The manual way: the htaccess file
If you’d rather write the redirect yourself, turn on Show Hidden Files under Settings in File Manager.

Open the .htaccess file in public_html; if it isn’t there, create it with the + File button.


Put these lines at the top of the file and save:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Use only one of these two ways; turning on both can cause an ERR_TOO_MANY_REDIRECTS error. If your site is behind Cloudflare, set its SSL mode to Full (strict) so the redirect doesn’t loop; see How to Set Up Cloudflare for Your Website.
Move WordPress to HTTPS too
In the WordPress dashboard, go to Settings and then General, write both WordPress Address (URL) and Site Address (URL) with https and save. If some images or files still load over http afterwards and the browser lock isn’t complete, see How to Fix Mixed Content Errors.
If AutoSSL didn’t issue a certificate
- The domain doesn’t point to the hosting yet: AutoSSL verifies domain ownership through this hosting. If you’ve just changed nameservers, wait a few hours and click Run AutoSSL again.
- www or mail has no DNS record: every name that needs a certificate must have a DNS record.
- The domain is behind Cloudflare: if validation fails, temporarily turn off the Cloudflare proxy (the orange cloud) and try again.
- CAA records: if your domain has a CAA record, it must also name AutoSSL’s certificate issuer.
You can see the reason for the error next to the domain name on the same SSL/TLS Status page. If you can’t fix it, send a ticket with that text.
FAQ
What’s the difference between free and paid SSL?
Both encrypt the connection equally well. Paid certificates offer higher validation levels, such as OV and EV, and support from the issuer, which mostly matter to organizations. For most sites, a free certificate is enough.
My certificate didn’t renew; what should I do?
Click Run AutoSSL again in SSL/TLS Status. Usually the cause is that the domain no longer points to the hosting or the DNS record of one of the names has been deleted.
Does SSL slow down my site?
Hardly at all. In fact, HTTPS lets your site use HTTP/2 and HTTP/3, which make loading faster.
Free SSL on HiData hosting
On HiData’s cPanel hosting, a free SSL certificate is issued with AutoSSL and renews itself, and wherever you get stuck, our 24/7 ticket support has your back! See the plans on our hosting page.


