SSL & Security How to Force HTTPS on Your Website
An SSL certificate encrypts your site, but visitors can still land on the insecure http:// version unless you force them to HTTPS. This redirect is what finally clears the “Not Secure” warning for everyone. Here are three reliable ways to do it.
First: confirm SSL is working
Install SSL before forcing HTTPS. If you redirect to https:// without a valid certificate, visitors hit certificate errors. Check that https://yourdomain.com loads cleanly first — see install a free SSL certificate.
Method 1: The cPanel toggle (easiest)
Many control panels, including cPanel’s domain tools, have a Force HTTPS Redirect switch:
- In cPanel, open Domains.
- Find your domain and turn on Force HTTPS Redirect.
That’s it — http:// now redirects to https://. This is the simplest method and works for any type of site.
Method 2: WordPress settings
For a WordPress site:
- Go to Settings → General.
- Set both WordPress Address (URL) and Site Address (URL) to
https://yourdomain.com. - Save. WordPress will send visitors to the HTTPS version.
If some links still load insecurely afterwards, you have mixed content — see fix mixed content errors.
Method 3: .htaccess rule
If you prefer a manual rule (or your setup needs one), add this to the top of your .htaccess file in the site’s root, inside the public_html folder:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The R=301 makes it a permanent redirect, which is what you want for SEO. Back up .htaccess before editing it.
Avoid redirect loops
If the site redirects endlessly after you turn on HTTPS:
- Use one method only, not two at once.
- If you use Cloudflare, set its SSL mode to Full (strict), not Flexible — Flexible causes loops.
After forcing HTTPS
- Update internal links and your sitemap to
https://so you’re not redirecting on every click. - In Google Search Console, add and verify the
https://version and submit your sitemap. - Re-test with an online SSL checker.
Secure by default on our hosting
Every Web Hosting and WordPress Hosting plan includes free SSL and a Force HTTPS toggle, so switching your whole site to secure takes a minute. If a “Not Secure” label persists, our fix the Not Secure warning guide covers every cause.
Frequently asked questions
Do I need SSL installed before forcing HTTPS?
Yes. Forcing HTTPS before a valid SSL certificate is in place will break your site with certificate errors. Install SSL first, confirm https:// works, then turn on the redirect.
Will forcing HTTPS affect my SEO?
It helps. Use a 301 (permanent) redirect so search engines pass your rankings to the HTTPS version. Also update your site URL and internal links to https:// so you are not redirecting on every click.
My site redirects too many times after forcing HTTPS. Why?
A redirect loop usually means two systems are both redirecting, or a CDN like Cloudflare is set to 'Flexible' SSL. Use one redirect method, and if you use Cloudflare set SSL mode to 'Full (strict)'.