How to fix a Not secure warning on your website
A Not secure warning means your browser cannot trust the connection to your site. The usual fixes are installing or renewing an SSL certificate, redirecting HTTP to HTTPS, and removing insecure content from your pages.
The Not secure warning appears when your browser cannot trust the connection to your website. It usually means the site loads over plain HTTP, the SSL certificate is missing or expired, or a secure page still loads some of its content insecurely. All three are fixable, and often within an hour.
What people see
The warning comes in three common forms, and which one you have points to the cause.
- A Not secure label in the address bar. Chrome, Edge and other browsers show this next to the address when the page was loaded over
http://. Usually there is no certificate in use, or visitors are landing on the HTTP version. - A full page warning. Chrome says Your connection is not private, and Firefox says Warning: Potential Security Risk Ahead. This means the certificate is expired, issued for a different name, or not trusted. Many visitors turn back here.
- A missing or crossed out padlock on an https:// page. This is called mixed content. The page itself is secure, but it loads an image, script or font from an
http://address.
Why it matters
- Trust and sales. A full page warning stops many visitors from reaching your site at all. A Not secure label beside a contact form, login or checkout makes people hesitate to type anything in.
- Security. On plain HTTP, anything a visitor types can be read or changed on its way to your server, including passwords and enquiry forms.
- Search. Google uses HTTPS as a ranking signal. It is a light one, but visitors leaving at a warning page costs you more than the signal does.
- Broken features. Browsers can block insecure scripts and embeds on secure pages, so sliders, maps or forms may quietly stop working.
How to check if your site has it
- Type your address with
https://at the start. If you get a full page warning or the page will not load, you have a certificate problem. - Click the icon to the left of the address and look for certificate details. Check the expiry date and that the name matches your domain.
- Type the
http://version. It should jump tohttps://automatically. If it stays on HTTP, the redirect is missing. - Press F12 and open the Console tab on an https page. Messages that say Mixed Content name the exact files causing it.
- Run a free test such as the SSL Labs SSL Server Test or Why No Padlock. Both explain what is wrong in plain terms.
- If you are comfortable with a terminal, run
curl -I http://yourdomain.com. A healthy site answers with a301and aLocationheader that starts withhttps://.
SiteMonday also looks at this: week 10 covers domain, SSL and email deliverability, and any certificate problems show up in the written report and ranked fix list.
How to fix it
Work out which problem you have first.
| What you see | Likely cause | Fix |
|---|---|---|
| Not secure, address starts with http:// | No certificate, or no redirect | Install a certificate, then add a redirect to HTTPS |
| Your connection is not private | Expired or wrong certificate | Renew or reissue it, covering both www and non-www |
| No padlock on an https:// page | Mixed content | Change http:// links to https:// |
Then work through these steps. You may only need some of them.
- Get a certificate. Most hosts offer a free one from Let's Encrypt. Look in your hosting control panel under SSL/TLS, Security or Let's Encrypt. If you cannot find it, ask your host. Make sure it covers both
example.comandwww.example.com. - Check your domain points to the right server. A certificate cannot be issued or work properly if the domain's DNS points somewhere else.
- Redirect HTTP to HTTPS with a 301. Many hosts have a Force HTTPS switch. Otherwise the redirect goes in your server configuration or a plugin.
- Update your site address. In WordPress this is Settings, General, where both addresses should start with
https://. Other platforms have a similar setting. - Fix mixed content. Search your theme, widgets, page content and embeds for
http://and change them tohttps://. If a file is not available over HTTPS, host it yourself or remove it. - Update the loose ends. Check canonical tags, your sitemap, internal links and your Google Search Console property so they all use the HTTPS address.
Fixes by platform
Exact menu names depend on your host, version and theme, so treat these as pointers.
- WordPress: get the certificate from your host first, then change the two site addresses, then fix old http:// links in your content. Take a backup before any bulk search and replace in the database. The WordPress guide goes through it.
- Cloudflare: under SSL/TLS, use Full (strict) mode when your server has a valid certificate. Flexible mode with an HTTPS redirect on your server often causes a redirect loop, which is covered in too many redirects. There is also a Cloudflare guide.
- cPanel: look for SSL/TLS Status or AutoSSL and run it for your domains.
- GoDaddy and Namecheap: whether a certificate is included depends on your plan. Check the product page for your hosting, then install it from there.
- Nginx and Apache: the Certbot tool is the usual route. For example
certbot --nginx -d example.com -d www.example.com, orcertbot --apachewith the same domain options. It also sets up renewal.
How to confirm the fix worked
- Open the site in a private window and check for the padlock on your home page and a few inner pages.
- Visit the
http://address and confirm it lands onhttps://in one step. - Look at the certificate in the browser and check the expiry date is in the future.
- Open the F12 Console and confirm there are no Mixed Content messages.
- Run the SSL Labs test again and check for a clean result.
If some visitors still see the warning after you fix it, ask them to reload or clear their cache. Old copies of the page can linger for a short time.
How to stop it coming back
- Make sure renewal is automatic. Let's Encrypt certificates last 90 days, so renewal has to run by itself. With Certbot you can test it using
certbot renew --dry-run. - Send renewal notices to a real inbox. For paid certificates, put the expiry date in a calendar as well.
- Keep the domain renewed and DNS stable. A lapsed domain or a changed DNS record can break a working certificate.
- Re-check after changes. Moving host, switching theme or adding a CDN can all bring the warning back.
- Check on a schedule. SiteMonday reports on this in week 10, but fixing what it finds is up to you or your developer.
Browsers also show warnings when a site is down or erroring, which is a different problem. If your site is unreliable as well, read why a website keeps going down.
Step by step for your platform
- Not secure warning in browser on WordPress
- Not secure warning in browser on Cloudflare
- Not secure warning in browser on cPanel
- Not secure warning in browser on GoDaddy
- Not secure warning in browser on Namecheap
- Not secure warning in browser on Nginx
- Not secure warning in browser on Apache
Questions
Is a Not secure warning dangerous for my visitors?
On an HTTP page, anything a visitor types can be read or changed in transit, so it is a real risk for forms and logins. The label itself does not mean your site has been hacked.
Why does my site say Not secure when I already have an SSL certificate?
Usually visitors are landing on the http:// version because there is no redirect, or the page loads some files over http:// (mixed content). Check the address and the browser Console for Mixed Content messages.
Can I get an SSL certificate for free?
Yes. Let's Encrypt issues free certificates and many hosts offer them in the control panel. Paid certificates exist too, but a free one is enough for most small business sites.
Why did the warning suddenly appear on a site that was fine?
The most common reason is an expired certificate that was not renewed automatically. A changed DNS record, a host move or a new CDN setting can also cause it.
Will fixing it help my Google rankings?
HTTPS is a light ranking signal, so do not expect a big jump. The main gain is that visitors stop leaving at the warning.
Do I need a developer to fix this?
Often not. If your host offers a free certificate and a Force HTTPS option, you can do it yourself. Mixed content in a custom theme or a server configuration problem may need a developer.