Guides › HTML / PHP sites › Domain, DNS & SSL

Mixed Content Warnings in HTML Sites: Find and Fix http:// Links

After moving to HTTPS, leftover http:// links to images, scripts or styles cause warnings. Find them and change them to https://.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Domain, DNS and SSL

Mixed content means a page loaded over https:// still pulls something over plain http://, such as an image, script or stylesheet. Browsers may block that item or remove the padlock, so images disappear or the site looks broken.

1Find the offending links2Search your files3Change them4Check CSS, JavaScript and third-party code5Redirect HTTP to HTTPSFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Find the offending links

Illustration for Step 1: Find the offending links

Open the page in Chrome, press F12 and look at the Console tab. It lists each blocked or insecure request, for example "Mixed Content: The page was loaded over HTTPS, but requested an insecure image". It names the full URL.

Step 2: Search your files

Illustration for Step 2: Search your files

In your editor or File Manager, search the site for http://. Pay attention to attributes such as src="http://, href="http:// and CSS url(http://. Ignore normal outbound links and XML namespaces such as http://www.w3.org, which are not loaded.

Step 3: Change them

Illustration for Step 3: Change them
  1. If the other site supports HTTPS, change http:// to https://.
  2. For your own files, you can use a path from the site root, like /images/logo.png.
  3. If the other site does not support HTTPS, host the file yourself or remove it.

Step 4: Check CSS, JavaScript and third-party code

Illustration for Step 4: Check CSS, JavaScript and third-party code

Old embed codes, widgets and fonts are common sources. Also check CSS files, since background images are easy to miss.

Step 5: Redirect HTTP to HTTPS

Illustration for Step 5: Redirect HTTP to HTTPS

Make sure http:// addresses redirect to https:// so visitors do not end up on the old version.

Test

Reload with the Console open. When no mixed content warnings remain, the padlock shows normally. A tool such as "Why No Padlock" can scan a URL too.

WordPress note

On WordPress, links usually live in the database. A search-and-replace tool or plugin changes them there, and a backup should come first.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.