Skip to the content

Nothing is charged this year: every tool and every check. See the plans

96,892 bot visits counted on ursy.com · updated 2 Dec, 08:05 UTC
Start free

Mixed content: files loaded over plain http

The https page asks for scripts, styles, images or media over http, so browsers block or upgrade them and the page can break.

High priority Security and HTTPS

Why it matters #

Browsers block scripts, stylesheets, frames and fonts that an https page asks for over plain http. A blocked script or stylesheet can break menus, buttons, the basket or the whole layout.

Images, audio and video over http are upgraded to https by current browsers. If the file does not exist on https it simply does not show.

How to fix it #

Change each http:// address in the page to https://, or to an address that starts with /. Look in theme settings, widgets, page builder blocks and old posts, where full addresses are often stored.

On WordPress, after a move to https, a search-and-replace of "http://yourdomain" with "https://yourdomain" in the database fixes most cases. Check with the SSL Certificate Checker.

What it looks like, and fixed #

The problem
<script src="http://www.example.com/js/menu.js"></script>
<img src="http://www.example.com/uploads/oak-bench.jpg" alt="Oak bench">

On an https page the browser blocks this script, and upgrades or drops the image.

Fixed
<script src="https://www.example.com/js/menu.js"></script>
<img src="/uploads/oak-bench.jpg" alt="Oak bench">

Use https://, or an address that starts with / for files on your own site.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
Help me remove mixed content from [the page address] on [your website address], built with [your platform, e.g. WordPress]. A checker says this https page loads scripts, styles, images or media over plain http, which browsers block or upgrade. First, read the page source (or ask me to paste it) and list every http:// address it loads, marking which are blocked (scripts, styles, frames, fonts) and which upgraded (images, media). Say where each probably comes from: theme settings, widgets, page builder blocks, old posts or a plugin. Then give me the fix: change each address to https:// or a /-relative address at its source. Rules: back up the site and database first, change only these addresses, keep page addresses the same, and remove no other tags or scripts. If a file is not available on https, tell me rather than deleting it. Give exact steps or code and where it goes. Finally, tell me to re-check with the URSY.com SSL Certificate Checker at ursy.com/ssl-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress #

Check that both addresses in Settings, General start with https://. Then, after a backup, replace "http://www.example.com" with "https://www.example.com" in the database with a search-and-replace plugin or "wp search-replace" (try --dry-run first).

Shopify #

Look for http:// addresses typed into theme code, custom HTML sections and app embeds, and change them to https://.

A hand-made site #

Search your files for "http://" and change each address you control to https:// or to a /-relative address.

Your CDN (for example Cloudflare) #

Cloudflare's Automatic HTTPS Rewrites can upgrade many addresses on the fly, but fix the source as well so the problem does not depend on it.

Check it is fixed #

Run the SSL Certificate Checker on the page again: it should list no blocked files and no images or media over http. The browser console should show no mixed content warnings.

Official source #

MDN: Mixed content

Questions #

Can I add upgrade-insecure-requests instead? #

That Content-Security-Policy rule tells browsers to ask for every http address over https. It is a useful safety net, but each file must still exist on https, so fix the addresses too.

Why does it only break on some pages? #

Full addresses are often stored inside individual posts, widgets or blocks, so only the pages that use them are affected.

More problems in Security and HTTPS

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com