Why does my website show Not Secure?

Reading Time: 2 minutes

TL;DR: The SSL certificate is missing, expired, or the page loads insecure assets over HTTP. Install or renew the certificate, force HTTPS, and fix mixed-content references.

The warning is about connection security, and there are three distinct causes worth separating.

Step 1 Check whether a certificate exists

Visit your site over HTTPS directly. If it fails outright, no valid certificate is installed for that hostname, including the www variant if you use it.

Step 2 Install or renew the certificate

Most hosts offer free automated certificates. Issue one through your hosting panel, or use a service like Cloudflare. Confirm it covers every hostname you serve, since a certificate for the bare domain may not cover subdomains.

Step 3 Check expiry and auto-renewal

Certificates expire on a fixed schedule. Verify the renewal automation is actually working rather than assuming it is, because silent renewal failure is extremely common.

Step 4 Force HTTPS redirects

Configure a redirect from HTTP to HTTPS at the server or application level so visitors cannot land on the insecure version. Test both the bare and www variants.

Step 5 Fix mixed content

If the padlock is broken but HTTPS loads, some assets are still requested over HTTP. Crawl the site or check the browser console for insecure requests, and update hardcoded URLs in content, theme files and database entries.

Step 6 Update stored URLs properly

In WordPress, run a serialised search-replace rather than a naive database edit, which corrupts serialised data. Backup before doing this.

Step 7 Verify behind proxies and CDNs

If you use a CDN, confirm the encryption mode is correct end to end. Flexible modes that encrypt only to the proxy can cause redirect loops or leave the origin connection insecure.

Step 8 Retest across devices

Check on mobile and in a private window to bypass cached state, and confirm the padlock appears on every important page rather than only the homepage.

Back to How-To

Was this helpful?

Thanks for your feedback!

Comments are closed