You have installed a certificate, the address does start with https://, your host's tool says the certificate is valid… and yet the browser says “not secure”, shows a crossed-out padlock, or serves a half-broken page. That mismatch is common and rarely serious, but it does not go away on its own. The certificate is often only one piece of the puzzle: what the page loads, how you arrive at it, and what sits between the visitor and the server all count just as much.

Start by reading the browser's warning
“Not secure” actually covers several different messages, and each one points at a family of causes. Before you touch the server, look closely at what the browser says, on exactly which address, and whether the warning appears on every page or only on some.
What the warning is telling you
| What you see | What it means | Where to look |
|---|---|---|
| A full-page warning before the site | The browser is refusing the certificate presented | The name covered, the dates, the chain, which certificate is actually served |
| The site loads, with “not secure” or a crossed-out padlock | The page loads or submits something over HTTP | Mixed content, a form, an address visited over http:// |
| The site loads, but styles, scripts or video are missing | Resources over HTTP have been blocked | The browser console, the theme, the plugins, third-party services |
| A warning only with www, or only without | One variant of the name is not covered, or badly redirected | The names on the certificate, the canonical redirect |
| A warning on some devices only | An incomplete chain, an old device, or a wrong clock | The intermediate certificate, the device's date |
Click the icon to the left of the address: browsers say there whether the connection is secure, and give you access to the certificate. The icon itself varies between browsers and versions; what counts is the message with it. Note the exact address of the page showing the warning, too: one page affected points at its content, the whole site at the configuration.
Mixed content, cause number one
We talk about mixed content when a page loaded over HTTPS calls a resource over HTTP. The page itself is encrypted, but that resource travels in the clear: it could be read or altered on the way. Browsers react differently depending on the kind of resource, as MDN documents.
Based on MDN's documentation on mixed content. The exact behaviour depends on the browser and its version: the console remains the reference.
In practice: an image over http:// may produce no visible warning at all in a recent browser, because it is rewritten to https://, while a stylesheet over http:// is simply refused and the page appears with no formatting. So the same site can look fine to you and broken to a visitor on an older browser.
Finding the resources at fault
Open the developer tools (F12, or right-click then “Inspect”), go to the Consoletab, and reload the page. Every resource concerned appears there with a “Mixed Content” message and its full address. The Network tab then shows which file requested it. For a quick check, view the page source and search for http:// : anything pointing at your own domain over http:// is suspect.
Where http:// addresses hide in WordPress
Database
Images inserted before you moved to HTTPS, links in posts, custom fields, saved settings.
The theme and the builder
The logo, a background image, custom CSS, code added in the header or the footer.
Plugins and services
Widgets, a map, embedded video, a tracking script, an external font, a partner's iframe.
A site migrated from an older host, or moved to HTTPS after years on HTTP, usually accumulates a great many. Replacements in the database have to respect the serialised data WordPress and the plugins store: a blunt search-and-replace in an SQL export can corrupt settings. WP-CLI's wp search-replace handles that case; either way, back up first. The guide on 404 pages after a migration covers the other addresses worth checking after a change of server or domain.
When it really is the certificate
A tool can report “valid certificate” while checking only part of the conditions. For the browser, four things have to hold true, for the exact name being visited.
- The name matchesThe certificate lists the name being visited: example.com and www.example.com are two different names.
- The dates are validNeither expired nor not yet valid, judged against the device's clock.
- The chain is completeThe server sends the intermediate certificate that links its own to a recognised authority.
- It is the one actually servedThe server, the proxy or the CDN presents the new certificate and not an old one.
The domain, www and subdomains
A certificate covers a list of names. A wildcard certificate for *.example.com covers shop.example.com but neither example.com itself nor a.b.example.com. If the warning only appears with www, or only without, or on one particular subdomain, compare the names listed on the certificate with the exact address. A subdomain pointing at another service — a shop hosted elsewhere, a booking tool — depends on the certificate installed at that service, not on yours.
Expiry and renewal
The maximum lifetime of public certificates is coming down in stages set by the CA/Browser Forum: 200 days since 15 March 2026, then 100 days from 15 March 2027 and 47 days from 15 March 2029. Renewing by hand is therefore becoming untenable, and an automatic renewal that fails silently is an increasingly common cause of warnings. After a renewal, check the web server was actually reloaded and is serving the new certificate.
An incomplete chain: the “it works for me” case
If the server does not send the intermediate certificate, some browsers manage to complete the chain themselves and others do not. The site then works on your computer and errors on a phone, in an app, or at a client's. A device with the wrong time, or a very old system, produces similar symptoms: before changing anything on the server, have a second person test on another device.
Redirects and WordPress addresses
A site can have a perfect certificate and still be visited over HTTP, simply because nothing redirects to HTTPS. Old links, bookmarks, some campaigns, and visitors who type the address by hand all land on the unencrypted version, which the browser rightly flags.
- The
http://version should redirect permanently (301 or 308) to thehttps://. - The chain should finish in one hop where possible, and never drop back to HTTP along the way.
- One canonical variant (with or without www), the other redirecting to it, over HTTPS.
During a redesign, these rules are often rewritten: check they have not disappeared along with the old ones, as 301 redirects forgotten after a redesign.
In WordPress, two settings decide the addresses it generates: the site address and the WordPress address, under Settings > General. If they still start with http://, WordPress goes on producing links and resources over HTTP. When they are fixed in wp-config.php by the WP_HOME and WP_SITEURLconstants, the fields are greyed out in the admin and it is the file you have to correct. Those same addresses are what SEO plugins use to generate the canonical tags: an oversight can produce exactly the symptoms described in canonical errors after a migration.
When the address changes domain at the same time as protocol, the redirects become a search matter too: the guide on a traffic drop after a domain name change covers that side of it.
Proxies, CDNs and detecting HTTPS
Between the visitor and WordPress there is sometimes something in the middle: a CDN, a web application firewall, a load balancer, a reverse proxy. The visitor connects over HTTPS to that intermediary, which then contacts the server. Two classic problems follow.
The journey to the server is not encrypted
A “flexible” mode encrypts only between the visitor and the CDN. If the server redirects to HTTPS, the request loops forever; if it does not redirect, the data travels in the clear between the CDN and the server. The mode you want encrypts both legs and verifies the origin's certificate.
WordPress does not know it is on HTTPS
Behind a proxy that terminates the encryption, WordPress receives requests over HTTP and can generate http:// links, or a redirect loop. The WordPress documentation says to recognise the X-Forwarded-Proto header the proxy passes on.
The fix WordPress documents, placed in wp-config.php, is to set the HTTPS variable when the proxy says the original request was secure:
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
&& strpos( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https' ) !== false ) {
$_SERVER['HTTPS'] = 'on';
}
That setting only makes sense if the server is reachable solely through that proxy, and the proxy sets the header itself: otherwise anyone could send the header directly. If you turned a CDN on recently and the warning appeared at the same time, that is the first lead. The guide CDN: is it really useful for a site hosted in France? returns to what that intermediary adds to your workload.
Caching, HSTS and delays
A cache can serve an old version
After a fix, a page cached by a plugin, by the server or by a CDN can go on holding the old http:// addresses. Clear every cache layer, then test in a private window. For DNS changes — a new server, a CDN switched on — some visitors may still reach the old address for as long as the records live: that is propagation, and it explains why the same site behaves differently on different networks.
HSTS: useful, but last
The Strict-Transport-Security header (HSTS) tells the browser to use only HTTPS for the domain for a given period, without going back through HTTP. It strengthens the protection, but it fixes neither mixed content nor an unsuitable certificate. A few points from MDN's documentation:
- The header is only taken into account when received over HTTPS; sent over HTTP, it is ignored.
- A visitor's first visit is not covered, unless the domain is on the preload list.
- That list requires, among other things, a lifetime of at least a year (
max-age=31536000) and theincludeSubDomainsdirective: every subdomain then has to work over HTTPS. - Once browsers have remembered HSTS, it does not come off instantly:
max-age=0disables it for visitors who come back.
Enabled too soon with includeSubDomains, it can make a subdomain that had no certificate yet unreachable. Start with a short lifetime, check, then lengthen it.
A correct padlock depends on three things at once: the right certificate, a page loaded entirely over HTTPS, and a path that never drops back to HTTP.
Why is my site still not secure?
Answer seven questions about what you are seeing: the assistant ranks the checks to make, from the most likely to the least likely. You can then run a real check on your address.
Follow it with a real check on the address
We query the address from our server: the certificate presented, the names it covers, the expiry date, the HTTP to HTTPS redirect, the HSTS header and the resources called over HTTP in the HTML received. Resources added afterwards by JavaScript are not visible to this check. The address analysed is not kept.
The warning persists in spite of these checks?
Request a diagnosisFixing things in the right order
- 01
Note the exact symptom
The message shown, the exact address, which pages are affected, which browsers and devices, when it started, and the last change made.
- 02
Check the certificate being served
The names covered, the dates, the issuer, the chain. If the warning is full-page, everything hinges here.
- 03
List the mixed content
The browser console on the affected pages, then a search for
http://in the page source. - 04
Fix it at source
Back up; set the WordPress addresses to https://; replace in the database with a tool that respects serialisation; the theme and plugin settings; the third-party services.
- 05
Check the redirect and the intermediary
HTTP to HTTPS in one permanent hop, a single canonical variant, the CDN's encryption mode, HTTPS detection behind a proxy.
- 06
Clear the caches and test again
Plugin, server, CDN, then a private window and a second device. HSTS only after that.
Final check
The mistakes to avoid
Buying another certificate
If the certificate is valid for the name being visited, buying another changes nothing about mixed content.
Hiding the warning with a plugin
Rewriting the addresses on output can get you through the day, but it adds a layer and leaves the cause in place. Fix the database and the settings.
Replacing addresses in a raw SQL export
Broken serialised data loses widget or plugin settings.
Turning HSTS on to “force” the padlock
It does not fix the page's content, and it can block a subdomain still on HTTP.
Keeping the CDN's flexible mode
Redirect loops, and an unencrypted journey to the server.
Testing only on your own computer
Caching, and a chain your browser completes for you, can hide the problem your customers are seeing.
This warning is a matter of configuration and content, not necessarily of a hack. If, on the other hand, the browser or Google reports a dangerous site, that is a different subject: see “This site may be hacked”. And if you are discovering these settings after leaving a plan where everything was handled without your knowing, the account in what you find when you leave a mass-market host will ring true. To check whether a host looks after certificates and their renewal properly, see also how to spot an unreliable web host.
Frequently asked questions about the “not secure” warning
My certificate is valid, so why is the site marked “not secure”?
Most often because the page loads at least one resource over http://, or submits a form to an HTTP address. The certificate encrypts the connection to the page, not the resources called in the clear.
How do I find the mixed content on a page?
Open the browser's developer tools, go to the Console tab, and reload the page: every resource over HTTP is reported there with its address. You can also search for “http://” in the page source.
Why is the site secure with www but not without?
The two variants are different names. The certificate has to cover both, and one has to redirect to the other over HTTPS.
Is an SSL plugin enough to fix the problem?
It can rewrite the addresses on output and get you through the day, but the cause stays in the database and the settings. Fixing the addresses at source lasts longer.
Should I turn HSTS on?
It is good practice once the whole domain, subdomains included, works over HTTPS. Turn it on with a short lifetime at first, and never to hide an unresolved warning.
The warning only appears on some phones, why?
Often because the server does not send the intermediate certificate: some browsers complete the chain, others do not. A device with the wrong clock, or a very old system, are the other leads.
The warning is not inevitable, and not necessarily a certificate problem
Read the message, check the certificate served for the exact name, then look for what the page loads over HTTP and the path the request takes. In the great majority of cases, the cause is found in a few minutes with the browser console.
Migrating without losing HTTPSSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪