How to fix the "Not secure" warning on your website in Chrome
Chrome shows "Not secure" when your site loads over plain HTTP, or when its HTTPS certificate is missing, expired or wrong. The fix is to install a valid SSL certificate, send all visitors to the https:// version and make sure nothing on the page loads over http://.
If a visitor opens your website and Chrome shows "Not secure" next to the address, or a full red warning page, the connection between their browser and your site is not properly encrypted. It is common, usually quick to fix, and almost always comes down to the SSL certificate (the file that enables https://) or how the site is set up to use it.
What people actually see
There are two main versions of the warning, and they have different causes.
- "Not secure" in the address bar. The page loaded over
http://, with no encryption. This happens when there is no certificate, or when the certificate exists but the site is not set to use it. Visitors can still read the page, but Chrome labels it. - A full page saying "Your connection is not private". The site tries to use HTTPS but the certificate has a problem. Look for an error code under the Advanced button, such as
NET::ERR_CERT_DATE_INVALID(expired),NET::ERR_CERT_COMMON_NAME_INVALID(certificate is for a different domain name) orNET::ERR_CERT_AUTHORITY_INVALID(the issuer is not trusted, or the chain is incomplete).
A third case is a page that is on HTTPS but pulls in images, scripts or fonts over http://. That is called mixed content and can break the padlock or parts of the page. There is a separate guide on mixed content warnings.
Why it matters
- Trust and sales. People hesitate to fill in a contact form, let alone pay, on a page their browser calls not secure. The full red page stops many visitors completely.
- Security. Without HTTPS, anything typed into your forms, including passwords and contact details, can be read or changed by someone on the same network.
- Search. Google has said for years that HTTPS is a (small) ranking signal. The bigger SEO risk is practical: visitors who bounce at a warning page, and broken redirects or duplicate http and https versions of your pages.
How to check if your site has the problem
All of these are free.
- Type your address into Chrome starting with
http://(not https). If it stays on http or shows a warning, you have the problem. - Try both
yourdomain.comandwww.yourdomain.com. A certificate often covers only one of them. - Click the icon at the left of the address bar. On a good site it says the connection is secure. Open the certificate details to see the domain names covered and the expiry date.
- Press F12 to open Chrome DevTools and check the Console tab for mixed content messages, and the Security panel for a summary.
- Run your domain through the free SSL Labs Server Test (ssllabs.com/ssltest). It reports expired certificates, wrong names and chain problems.
- From a terminal,
curl -I http://yourdomain.comshould show a301response with aLocation:header starting withhttps://.
SiteMonday checks this in week 10 (domain, SSL and email deliverability), so a site on the subscription gets it looked at every year without anyone having to remember. See the week 10 page for what that week covers.
How to fix it in general
- Get a valid certificate. Most hosts include a free one (often from Let's Encrypt) that you switch on in the control panel. Paid certificates also work, but a free one is fine for most small business sites.
- Cover every name you use. The certificate must include both
yourdomain.comandwww.yourdomain.com, plus any subdomain such asshop.yourdomain.com. - Renew it before it expires. Expired certificates are a very common cause of the full red warning page. Free certificates last about 90 days and should renew automatically; check that auto renewal is on.
- Redirect http to https. Visitors and search engines should land on one version. On Apache hosting, this usually goes in the
.htaccessfile in your site's root folder (back up the file first, because a mistake can take the whole site offline, and if the site sits behind a proxy or CDN this rule can cause redirect loops):
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
On Nginx, a separate server block for port 80 with return 301 https://yourdomain.com$request_uri; does the same job. If you are unsure, ask your host, because the right place depends on the setup.
- Change your site address to https. Once the certificate is working, set the main site URL to
https://in your CMS settings (doing it earlier can lock you out of the admin area). Old links and images saved in the database withhttp://addresses need updating too (take a backup first), which is what causes mixed content. - Install the full certificate chain. If the error mentions an untrusted authority and your certificate was installed by hand, the intermediate certificate may be missing. See incomplete certificate chain.
Common platforms
Menu names change between versions and themes, so treat these as pointers.
| Platform | Where to look |
|---|---|
| WordPress | Settings, General (WordPress Address and Site Address must start with https). Your host's panel issues the certificate. WordPress guide |
| cPanel hosting | Look for SSL/TLS Status or AutoSSL, then run it for the domains that show a problem |
| Cloudflare | SSL/TLS section: use Full or Full (strict) mode, and turn on Always Use HTTPS under Edge Certificates |
| GoDaddy, Namecheap, Hostinger, Bluehost | Find the SSL or Security section of your hosting account and install or activate the certificate for your domain |
| Wix, Squarespace, Shopify | SSL is normally included and automatic. If it shows a warning, check that your custom domain is connected correctly and wait for the certificate to be issued |
One common trap with Cloudflare: Flexible mode encrypts only the visitor to Cloudflare leg, and combined with a server redirect it can cause endless redirect loops. Prefer Full (strict) once your host has a valid certificate.
How to confirm the fix worked
- Open
http://yourdomain.comandhttp://www.yourdomain.comin a private window. Both should end up on one https:// address with a padlock style icon and no warning. - Click through a few pages, including your contact form and any checkout, and watch for broken images or a lost secure label.
- Check the DevTools Console again for mixed content messages.
- Re-run the SSL Labs test and confirm the certificate is valid, names match and no chain errors are listed.
- Clear your browser cache or test on your phone with Wi-Fi off, since cached redirects can hide problems.
How to stop it coming back
- Turn on automatic renewal and note the certificate expiry date in a calendar, with a reminder two weeks ahead.
- Make sure a renewal email goes to an address someone actually reads.
- When you add a new subdomain or move hosts, re-issue or extend the certificate straight away.
- Use https:// when pasting image and link addresses into pages, or use relative links.
- Re-check after any hosting, DNS or CDN change. A scheduled review such as SiteMonday's week 10 report catches an expiring or mismatched certificate and ranks it in a fix list, though the fix itself is up to you or your developer.
Once the certificate is valid and the redirect is in place, the warning disappears for new visitors straight away.
Step by step for your platform
- Browser 'Not secure' warning on website on WordPress
- Browser 'Not secure' warning on website on Cloudflare
- Browser 'Not secure' warning on website on cPanel
- Browser 'Not secure' warning on website on GoDaddy
- Browser 'Not secure' warning on website on Namecheap
- Browser 'Not secure' warning on website on Hostinger
- Browser 'Not secure' warning on website on Bluehost
Questions
Why does Chrome say Not secure when I have an SSL certificate?
Usually the site still loads over http:// because there is no redirect, or the page includes images or scripts over http://. Set your site address to https:// and add a 301 redirect.
Is the Not secure warning dangerous for my visitors?
On an http page, information sent through forms can be read by others on the same network, so it is a real risk for logins and contact details. It does not mean your site has been hacked.
Do I need to pay for an SSL certificate?
Usually not. Most hosts offer a free certificate that renews automatically, and it provides the same encryption as a paid one for a typical small business site.
Why do I see Your connection is not private on my own site?
The certificate is probably expired, issued for a different domain name, or missing part of its chain. The error code under Advanced tells you which.
Will fixing the warning improve my Google rankings?
HTTPS is a small ranking signal, so do not expect a jump. The main gain is that visitors stop leaving at a warning and search engines see one clean version of each page.
How long does it take for the warning to go away?
Once a valid certificate is installed and the redirect works, it is usually immediate. New certificates from some hosts can take from a few minutes up to a few hours to be issued.