Skip to main content

Forcing HTTPS on your website

Updated May 21, 2026

Installing SSL is step one. Step two is making sure every visit uses HTTPS — even people who type the bare URL.

WordPress sites

  1. WP Admin → Settings → General.
  2. Change both WordPress Address and Site Address from http:// to https://.
  3. Save — you may be logged out, log back in.
  4. Install Really Simple SSL and click Go ahead, activate SSL. It fixes mixed-content warnings automatically.

Static HTML sites — .htaccess

Add this to the top of your .htaccess file in public_html:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

From cPanel (easiest)

cPanel → Domains → click Force HTTPS Redirect next to your domain. Toggle it on. cPanel updates .htaccess for you.

Verifying

Open http://yourdomain.com (without the s) — your browser should auto-jump to https://.

Was this article helpful?