Available for projects & agency overflow · Quick reply, from the person who does the work

The padlock disappeared after moving to HTTPS

The certificate is valid, the site answers over HTTPS, and yet the padlock is crossed out or carries a warning. This is not a certificate problem: the page, served securely, is fetching part of its content over an insecure address. The browser flags it, and sometimes blocks the element outright.

Describe my issue Send a message

Two levels of severity

Browsers distinguish passive mixed content — images, video, audio — from active mixed content — stylesheets, scripts, embedded frames. The first is displayed but downgrades the security indicator. The second is blocked outright, because a script loaded in the clear could be swapped in transit.

That explains a confusing symptom: after moving to HTTPS, the layout collapses or a feature stops responding although nothing was changed in the code. The file exists, it is simply refused by the browser. The browser console then names each blocked resource precisely.

Where the remaining HTTP addresses hide

  1. In descriptions entered in the admin

    This is the most frequent source and the longest to clean: years of product pages containing images pasted with their full http address.

  2. In the CMS settings

    The shop address is stored in the database. While it stays on http, some generated links stay there too, including inside emails.

  3. In the theme and modules

    An address hard-coded in a template or stylesheet escapes any database replacement.

  4. In third-party scripts

    Old tracking tags, fonts, maps, libraries called from an external service that no longer offers a secure version.

  5. In the stylesheets themselves

    A background image declared over http inside a CSS file does not appear in the page source: only the browser console shows it.

What is left to check

Once mixed content is dealt with, two points finish the job. The permanent redirect from the insecure address to the secure one must be single and direct: a chain of cascading redirects dilutes the signal sent to search engines and slows every visit. And the addresses declared in the sitemap, the canonical tags and the tracking configuration must all use the secure version, otherwise statistics split in two.

  • Check internal links written out in full too: they force a pointless redirect on every click.
  • On a multilingual site, each language version has its own addresses to check.

Carry on with the right page

Describe your need in one minute

A few targeted questions so I can reply with an estimate rather than another questionnaire.

type
existant
stack (facultatif)
utilisateurs (facultatif)
echeance (facultatif)
Please provide an email or a phone number so I can get back to you.

Please provide an email or a phone number so I can get back to you.

Frequently asked questions

Is mixed content dangerous for my customers?
The real risk is limited for an image, serious for a script: a file loaded in the clear can be modified in transit. That is exactly why browsers block scripts and let images through.
Can I force the browser to load everything securely?
There is a directive asking the browser to retry any HTTP resource over HTTPS. That is a useful transitional patch, not a fix: if the resource does not exist securely, it still disappears.
Why does the problem only affect some pages?
Because mixed content usually comes from entered content, which differs from page to page. Automatically generated pages are clean.
Do I need to rebuild the site to move properly to HTTPS?
No. It is a cleanup and configuration job, not a rebuild. The duration depends mostly on how much old content needs correcting.
Can mixed content hurt my search ranking?
What weighs most is address consistency: two versions of the same site reachable, or cascading redirects. Mixed content itself mainly damages visible trust.