French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles Hosting & performance16 min read

Valid SSL certificate but the site is “not secure”: why?

The certificate is installed and valid, yet the browser says “not secure”. The cause almost always lies somewhere other than the certificate: resources over HTTP, a redirect, a subdomain, a proxy. Here is the order to check them in.

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.

Protected servers illustrating an SSL certificate and HTTPS security
A valid certificate encrypts the connection. It does not guarantee that everything the page loads goes over HTTPS.

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.

IDENTIFYING THE SYMPTOM

What the warning is telling you

What you seeWhat it meansWhere to look
A full-page warning before the siteThe browser is refusing the certificate presentedThe name covered, the dates, the chain, which certificate is actually served
The site loads, with “not secure” or a crossed-out padlockThe page loads or submits something over HTTPMixed content, a form, an address visited over http://
The site loads, but styles, scripts or video are missingResources over HTTP have been blockedThe browser console, the theme, the plugins, third-party services
A warning only with www, or only withoutOne variant of the name is not covered, or badly redirectedThe names on the certificate, the canonical redirect
A warning on some devices onlyAn incomplete chain, an old device, or a wrong clockThe 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

Content

Database

Images inserted before you moved to HTTPS, links in posts, custom fields, saved settings.

Presentation

The theme and the builder

The logo, a background image, custom CSS, code added in the header or the footer.

Features

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.

  1. The name matchesThe certificate lists the name being visited: example.com and www.example.com are two different names.
  2. The dates are validNeither expired nor not yet valid, judged against the device's clock.
  3. The chain is completeThe server sends the intermediate certificate that links its own to a recognised authority.
  4. 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 the https://.
  • 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.

Case 01

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.

Case 02

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 the includeSubDomains directive: every subdomain then has to work over HTTPS.
  • Once browsers have remembered HSTS, it does not come off instantly: max-age=0 disables 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.
Free Host by French tool

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.

The order suggested is worked out in your browser from your answers. It guides the diagnosis without replacing a look at the console and the certificate.

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 diagnosis

Fixing things in the right order

  1. 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.

  2. 02

    Check the certificate being served

    The names covered, the dates, the issuer, the chain. If the warning is full-page, everything hinges here.

  3. 03

    List the mixed content

    The browser console on the affected pages, then a search for http:// in the page source.

  4. 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.

  5. 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.

  6. 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

Mistake 01

Buying another certificate

If the certificate is valid for the name being visited, buying another changes nothing about mixed content.

Mistake 02

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.

Mistake 03

Replacing addresses in a raw SQL export

Broken serialised data loses widget or plugin settings.

Mistake 04

Turning HSTS on to “force” the padlock

It does not fix the page's content, and it can block a subdomain still on HTTP.

Mistake 05

Keeping the CDN's flexible mode

Redirect loops, and an unencrypted journey to the server.

Mistake 06

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

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.

IN SHORT

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 HTTPS

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du Trône logo Goodyvest logo Kincy logo Lhotellier logo Audrey Mégelé du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo Fête des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Useful articles

See all articles
What they say about working with us

Google reviews about the support we provide for the Valid ssl certificate but site not secure. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours • Migration handled • Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan