Chrome Not Secure Warning: Why It Appears and How to Fix It
WordPress troubleshooting

Chrome Not Secure Warning: Why It Appears and How to Fix It

When you see the Chrome Not Secure warning next to the address, it is saying one thing: the connection between the visitor and your site is not properly encrypted. According to the Chrome help center, this label means the privacy of the connection to the site is a problem, and what the site owner needs to do is secure the site with HTTPS.

There are a few usual suspects, and I check them in this order: there is no active SSL certificate, WordPress is still set to an http address, the site has mixed content, the certificate expired, or there is a wrong setting in Cloudflare. Each one has a sign that identifies it and a clear fix.

Before you change anything, back up all the files and the database. Some of the fixes here touch the address of the whole site, and a mistake in them can lock you out of the dashboard. With a backup in hand, any mistake is solved by a restore.

Not secure because there is no active SSL certificate

The first check is to type your site address into the browser with https at the start. If the site does not load, or a certificate warning appears, there is probably no SSL certificate installed on the domain, or it is installed only on some of the addresses (for example with www and without www).

An SSL certificate is installed on the server side, not inside WordPress. Go to your hosting control panel and look for the SSL or TLS area. If there is an option to issue a certificate for the domain, turn it on and make sure it covers both the www version and the version without it. If there is no such option, contact your hosting company’s support.

An SSL error that blocks access to the site

Sometimes the site does not load at all, and a browser error message appears instead, sometimes with the code ERR_SSL_PROTOCOL_ERROR. That means the browser could not create a secure connection with the server. First check whether it happens from another device and another network too. If so, the problem is on the server side, and the first check is that the certificate is installed and active in the hosting control panel. If the site goes through Cloudflare, the error code it shows (525 or 526) points to a fix on the hosting server. I put all the checks and fixes for this error together in the guide on the “this site can’t provide a secure connection” error.

WordPress is still set to an http address

Here the certificate is already installed, but the site keeps loading on http, or internal links send you back to an address without https.

To fix it, go to the WordPress dashboard, Settings > General, and change both fields, WordPress Address (URL) and Site Address (URL), to an address that starts with https. According to the WordPress documentation, if the fields are grayed out and cannot be edited, the address is defined in the wp-config.php file (in the WP_HOME and WP_SITEURL constants), and you change it there.

After that, every http address needs to redirect to its https version. According to Google, when moving from HTTP to HTTPS you use permanent redirects, such as 301 or 308, and permanent redirects do not cause a loss of PageRank. Set the redirect in one place only, in the hosting settings, on the server or in Cloudflare, because redirects from several places at once can create a loop.

To force a secure connection in the dashboard and on the login screen too, you can add this to wp-config.php, before the line that starts with That's all, stop editing!:

define( 'FORCE_SSL_ADMIN', true );

Mixed content

In this case the site loads on https, but Chrome still does not show it as secure, or images, fonts or scripts are missing. According to web.dev, a page has mixed content when its HTML loads over a secure HTTPS connection, but other resources in it, such as images, videos, stylesheets and scripts, load over an insecure HTTP connection.

This matters even when the page looks fine. According to web.dev, most browsers already block active mixed content, such as scripts, by default, and the behavior varies between browsers and versions. Chrome also tries to automatically upgrade images and media from http to https when possible. In practice, part of the site can break for some visitors without you seeing it on your own computer.

To find these resources, open the page in Chrome, press F12 and go to the Console tab. The browser warns about mixed content there in errors and warnings, with the address of each problem resource.

The fix is to change the address of each such resource from http:// to https://. According to web.dev, if the console shows a message that a request was automatically upgraded from HTTP to HTTPS, you can safely replace the address. After you change the site address, many old addresses remain in content, widgets and plugin settings. Do a bulk replace in the database only after a full backup, and check the site right after. If the site goes through Cloudflare, it has an option called Automatic HTTPS Rewrites, which according to their documentation prevents mixed content errors by rewriting addresses from http to https.

The certificate expired and was not renewed

The site worked with https and suddenly a privacy warning appears. By clicking the icon next to the address in Chrome you can see the certificate details and its dates.

Certificates have a limited validity. According to Let’s Encrypt, their certificates are issued for 90 days, and they announced they will shorten the maximum validity to 45 days by February 2028. Because of this, manual renewal is a recipe for failure. Check in the hosting control panel that automatic renewal is on, and if the certificate has already expired, issue it again.

Wrong SSL setting in Cloudflare

This problem shows up when the site goes through Cloudflare, and after you turned on https it falls into a redirect loop (ERR_TOO_MANY_REDIRECTS), or the connection between Cloudflare and the server is not secure.

Cloudflare has several encryption modes, including Off, Flexible, Full and Full (strict). According to their documentation, redirect loops happen when your server automatically redirects every HTTP request to HTTPS, and the fix is to remove the redirect from the server or change the encryption mode to Full or higher. Full (strict) is like Full and adds validation of the certificate on the origin server, so it fits when the server has a valid certificate installed. To redirect all visitors to https from within Cloudflare, there is an option called Always Use HTTPS. If you are not sure the problem is related to Cloudflare at all and not to the server itself, I wrote about that in the Cloudflare troubleshooting guide.

Final check: Site Health and HSTS

After the fixes, go over a few key pages: the homepage, a service page, the contact form and a page with many images. On each one, check that the address starts with https, that Chrome does not mark it as not secure, and that there are no warnings in the Console tab. If the site gets traffic from Google, make sure the redirects also work for the old addresses that are already in the index. I also wrote about that side in the article how to increase organic traffic to your website.

Then go to Tools > Site Health in WordPress. One of the checks there tests whether the site serves content over HTTPS, so you will see if something is still off.

When everything works and is stable, you can consider HSTS. According to web.dev, it is a header that tells browsers to always connect to your server over HTTPS, even when they arrive from a link that starts with http. Do this only after the whole site, including subdomains, works on https, because from that moment browsers that visited the site will not connect to it over http.

When to stop and call an expert

  • After changing the address in Settings > General you have no access to the dashboard.
  • The site falls into a redirect loop and you cannot find where it comes from.
  • You need a bulk replacement of addresses in the database and have no experience with it.
  • You have no access to the hosting control panel or the Cloudflare account.
  • The site is a live store, and any change to addresses or redirects could hurt the checkout process and incoming orders.
  • Chrome shows the site as “dangerous”. According to Chrome, this means the site was flagged as unsafe by Safe Browsing, and that is a completely different problem.

If you tried and Chrome still shows your site as not secure, I can handle it, from the certificate to the last link that loads on http.

Frequently asked questions

Why does Chrome show a not secure website if I have an SSL certificate?

Usually because WordPress is still set to an http address, or because of mixed content: resources on the page that load over http. Check Settings > General and the Console tab in Chrome’s developer tools.

What is mixed content?

A page whose HTML loads over HTTPS, but some of its resources, such as images, stylesheets or scripts, load over HTTP. The fix is to change the resource addresses to https.

How long is a Let’s Encrypt SSL certificate valid?

According to Let’s Encrypt, 90 days. They announced the maximum validity will shorten to 45 days by February 2028, so it is important that renewal is automatic.

Will moving to https hurt my site on Google?

Google treats a move from HTTP to HTTPS as a site move with URL changes, and recommends permanent redirects such as 301. According to Google, permanent redirects do not cause a loss of PageRank.

What do I do when the browser cannot create a secure connection with the site?

First check whether it also happens from another device and network. If so, check that the certificate is installed and active at your host, and if you use Cloudflare, read the error code it shows.

Which SSL mode should I choose in Cloudflare?

If the server has a valid certificate installed, Full (strict). Flexible mode together with an https redirect on the server is a known source of redirect loops, and Cloudflare recommends switching to Full or higher in that case.

Have a project worth talking about?

The call is free, with no commitment 😊