How to fix mixed content warnings
Why a site on HTTPS still shows ‘not fully secure’, how to find the insecure images, scripts and styles, and how to fix them for good.
On this page
Does this match what you’re seeing?
- The padlock is missing or shows a warning on an HTTPS page
- The browser console mentions ‘Mixed Content’
- Some images or styles don’t load after moving to HTTPS
Mixed content means an HTTPS page loads something — an image, script, stylesheet or font — over plain http://. Browsers block insecure scripts and styles outright and show a warning for the rest.
Find what’s insecure
- Open the page in Chrome, Edge or Firefox.
- Open developer tools (F12) and the Console tab.
- Reload. Each blocked or insecure item is listed with its full
http://address.
Fixing it in WordPress
- Settings → General: both addresses must start
https://. How to change your WordPress site URL - Old content still contains
http://links in posts. Run a search-and-replace on the database fromhttp://yourdomain.co.uktohttps://yourdomain.co.uk, using a search-and-replace plugin that handles serialised data. Take a backup first. How to back up WordPress - Theme and plugin settings: check logo, header image and custom CSS fields for hard-coded
http://URLs.
Fixing it in hand-built sites
Search your files for http:// and change references to your own domain to https:// — or to relative paths such as /images/logo.png.
For third-party resources, use the https:// version. If a service doesn’t offer HTTPS, replace it.
A temporary safety net
This header asks browsers to upgrade insecure requests automatically:
Header always set Content-Security-Policy "upgrade-insecure-requests"It hides the symptom; still fix the links, because resources without an HTTPS version will fail.
Prefer to follow along?
- Make your site secure with HTTPS
Beginner · 15 min
If it doesn’t work
These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.
- SSL certificate not issued or not renewingWhy a free certificate won’t issue or renew — DNS not pointing to Traxio, AAAA records, CAA, Cloudflare or rate limits — and how to fix each.
- “Your connection is not private” on your websiteDecode browser certificate errors — NET::ERR_CERT_COMMON_NAME_INVALID, DATE_INVALID, AUTHORITY_INVALID — and fix the cause on your site.
- “Too many redirects” and HTTPS redirect loopsFix ERR_TOO_MANY_REDIRECTS: conflicting HTTPS and www rules in .htaccess, WordPress settings, plugins and Cloudflare’s SSL mode.
Common questions
Why does my site say “Not secure” even though I have SSL?
Usually mixed content: the page loads over HTTPS but pulls in an image, stylesheet or script over plain HTTP, so the browser downgrades the padlock. Find those references and change them to https://.
Your browser’s developer console lists every mixed-content item by name, which is much faster than guessing. On WordPress, the usual culprits are hard-coded image URLs in old posts and a site address still set to http:// in Settings.
Spotted something out of date or unclear? Tell us and we’ll fix it.