Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Mixed content on https pages: how to find and fix it

SEO-094Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Your page address starts with https://, so the page itself is encrypted. Mixed content means that page pulls in at least one resource over plain http://. A resource is any file the page needs: an image, a script, a stylesheet, a font, a video, an iframe or a form action.

There are two kinds. Active mixed content (scripts, stylesheets, iframes, fetch and XHR calls) is blocked by modern browsers. Passive mixed content (images, audio, video) may load, but browsers can upgrade it to https or mark the page as not fully secure. Exact behaviour varies by browser and version.

It is common after a move from http to https. Old URLs stay hardcoded in page content, themes, widgets, embed codes and database fields.

Why it costs you leads or sales

A blocked script can quietly break things your visitors and your ad accounts rely on: a form script, a payment or booking widget, a chat button, a tracking tag. The page looks fine to you, but the form does not submit or the conversion is never recorded.

Even when nothing breaks, a missing padlock or a broken image reduces trust on the pages where people decide to enter details. Mixed content is also a quality signal for search: Google indexes the https version, and a page that loads badly or looks insecure is a weaker landing page.

How one http script breaks a lead form
  1. Visitor opens https pagePage loads normally
  2. Form script requested over httpBrowser blocks it
  3. Form does not submitButton does nothing or errors
  4. Lead and conversion tagNever reached the inbox or ad platform

The page loads over https, but the form script is requested over http and blocked.

How to check if your site has it

Find insecure requests on a page
  1. Open the page in Chrome

    Use the https URL of your key pages: home, landing pages, forms, checkout.

  2. Open DevTools Console

    Press F12 (or Cmd+Option+I on Mac), then open the Console tab and reload. Look for messages starting with 'Mixed Content'. They name the exact http URL.

  3. Check the Network tab

    Reload, then type 'http:' in the filter box (or filter by 'mixed-content'). Anything listed is loaded insecurely.

  4. Search the source

    Use View Source and search for 'http://'. Many hits are harmless links to other sites. Focus on src, href in link tags, action and url() values.

  5. Repeat on key templates

    Check one page per template: blog post, product, landing page, thank-you page. A problem often sits in a shared header, footer or widget.

Where hardcoded http URLs usually hide
PlaceTypical culprit
Page or post contentImages and embeds pasted years ago
Theme or template filesHardcoded logo, font or script URLs
Plugins, apps and widgetsOld embed codes, sliders, review badges
CSS filesurl(http://...) for backgrounds and fonts
Database and settingsSite URL set to http, old media URLs
Tag manager and custom HTMLPixels or scripts with http:// source

How to fix it

The real fix is to change each http:// URL to https://, or to a protocol-relative path for your own files. First confirm that the other host serves the file over https. If a third party only supports http, replace or remove that resource.

Fix mixed content by platform
  1. Set both URLs to https

    In Settings > General, make sure WordPress Address and Site Address start with https://.

  2. Update URLs stored in the database

    Back up first. Then run a search-and-replace from http://yourdomain.com to https://yourdomain.com using WP-CLI (wp search-replace) or a search-replace plugin. Serialized data needs a tool that handles it.

  3. Check theme and plugin settings

    Look in the Customizer, theme options, page builder global settings and widgets for http logos, fonts and scripts.

  4. Clear caches

    Purge your caching plugin, CDN and any generated CSS files so old http URLs disappear.

Nginx: ask browsers to upgrade leftover http requestsnginx
add_header Content-Security-Policy "upgrade-insecure-requests" always;
Apache (.htaccess): same headerhtaccess
<IfModule mod_headers.c>
  Header always set Content-Security-Policy "upgrade-insecure-requests"
</IfModule>
Form script URL

Mixed content

  • <script src="http://cdn.example.com/form.js">
  • Browser blocks the script
  • Form does not submit

Secure

  • <script src="https://cdn.example.com/form.js">
  • Script loads
  • Form submits and tags fire

How to confirm it's fixed

Confirmation checks
  • Reload each key page in a private window with the Console open: no 'Mixed Content' messages.
  • The Network tab filter 'http:' shows no requests to your own or third-party files.
  • The padlock shows as secure.
  • Submit a test lead and confirm it arrives in your inbox and CRM.
  • Check your tags still fire, for example with GTM Preview or your ad platform's test tool.
  • Check at least one page for each template, not just the home page.

How to prevent it happening again

Prevention habits
  • Paste https:// URLs only. Copy embed codes fresh from the provider.
  • After any migration, domain change or theme change, scan key pages for mixed content.
  • Keep the upgrade-insecure-requests header as a backstop if you control the server.
  • Review new plugins, apps and tag manager additions before publishing.
  • Redirect http to https site-wide so old links land on the secure version.
  • Run automated checks on a schedule so a new http resource is caught within a day, not months later.

How FunnelGuard handles this

FunnelGuard detects this issue today. It runs a check called no_mixed_content as part of its scheduled visits, loading your pages the way a real visitor would and flagging http resources requested from an https page. If a failure is found, it is re-checked from a second region before one alert is sent, with a screenshot and a likely cause.

FunnelGuard does not rewrite your URLs for you. You still make the fix on your platform, then the next scheduled check shows whether the problem is gone. The Free plan covers 1 site and 2 journeys with daily checks and no card, and a free read-only website audit is also available.

Questions people ask

What is mixed content on an https website?

Mixed content is when a page loaded over https also requests some resources, such as images, scripts, styles or iframes, over plain http. This weakens the security of the page. Browsers may block or warn about those resources.

Why is my site showing 'not secure' even though I have an SSL certificate?

A valid certificate secures the connection to the page, but the page can still load some files over http. That is mixed content, and it can remove the padlock or trigger a warning. Check the browser Console for 'Mixed Content' messages to find the files.

How do I find mixed content on my website?

Open the page in Chrome, press F12, go to the Console and reload. Mixed content messages name each insecure URL. You can also filter the Network tab by 'http:'. Repeat for each key page template.

How do I fix mixed content in WordPress?

Set WordPress Address and Site Address to https in Settings > General. Then run a database search-and-replace from http to https for your domain, and check theme, plugin and widget settings. Clear all caches afterwards.

Can mixed content stop my contact form or tracking from working?

Yes. Browsers block active mixed content such as scripts and iframes. If a form, chat or tracking script loads over http, it can fail while the page still looks normal.

Does mixed content hurt SEO?

It can indirectly. Broken scripts or images make the page a worse experience, and insecure warnings reduce trust. Fixing it keeps your https pages clean and working for visitors and crawlers.

What does upgrade-insecure-requests do?

It is a Content-Security-Policy directive that tells browsers to request http resources over https instead. It helps when old URLs remain, but it fails if the resource is not available on https. Fix the source URLs as well.

How does FunnelGuard detect mixed content?

Its scheduled checks include no_mixed_content, which flags http resources loaded on https pages. A failure is re-checked from a second region before you get one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_mixed_content.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.