SearchAuditPro
LoginStart Free Trial

HTTPS Audit: How to Find Mixed Content, Insecure Links and Certificate Gaps

HTTPS Audit: How to Find Mixed Content, Insecure Links and Certificate Gaps

By Joe Whyte · 12/2/2026

Most sites installed an SSL certificate years ago and have not thought about it since. The padlock shows on the homepage, so the job looks finished. In our experience, that is rarely the full picture. HTTPS problems tend to sit in the corners: an old image hardcoded with an http:// address, a canonical tag that still names the insecure version, a subdomain with a certificate that expired last week.

This guide walks through an HTTPS audit in the order we would run it. It is aimed at anyone responsible for a live site, whether you manage one domain or fifty client properties.

Why HTTPS problems survive the migration

An HTTPS migration changes the protocol of every URL on the site. A redirect rule handles the visitor-facing part, but it does nothing for the thousands of references stored in your content, templates, database and third-party tools. Those references keep pointing at the old protocol until someone finds and changes them.

The consequences vary in weight:

  • Browser warnings and blocked resources. Visitors see a degraded padlock, or part of the page fails to load.
  • Wasted redirects. Internal links to HTTP URLs force an extra hop on every click and every crawl.
  • Mixed signals. Canonicals, sitemaps and hreflang that name HTTP URLs tell search engines the insecure version is the preferred one.
  • Trust loss. A certificate error page stops a visitor before they see any content at all.

HTTPS is a lightweight ranking signal, so none of this is likely to sink a site on its own. But these issues are cheap to fix and tend to cluster, which makes them a good audit target.

Step 1: Test all four hostname variants

Start with the simplest check. Request each of these four addresses for your homepage and a few deep URLs:

  1. http://example.com/
  2. http://www.example.com/
  3. https://example.com/
  4. https://www.example.com/

Three of them should return a single 301 redirect to the one you have chosen as canonical. The fourth should return a 200. Look for these failures:

  • A variant that returns a 200 instead of redirecting, which creates a duplicate copy of the site.
  • A variant that redirects twice or more, for example HTTP to HTTPS and then non-www to www as separate hops.
  • A redirect that sends deep URLs to the homepage instead of the matching path.
  • A variant that throws a certificate error before the redirect can even happen. This is common when the certificate covers www but not the bare domain, or the reverse.

That last one is easy to miss because most people test the version they type by habit. A visitor who types the bare domain, or follows an old link, hits the broken variant.

Step 2: Find mixed content

Mixed content means an HTTPS page loads a resource over HTTP. Browsers split it into two kinds, and the difference decides how urgent the fix is.

Passive mixed content

Images, audio and video. Modern browsers generally try to upgrade these to HTTPS automatically, and if the upgrade fails they may load the resource with a warning or block it. The page usually still works, but images can go missing.

Active mixed content

Scripts, stylesheets, iframes and fetch requests. Browsers block these, and the result can be a broken menu, a form that does nothing or a missing embedded widget. Treat active mixed content as a functional bug, not a cosmetic one.

To find it, crawl the site and extract every resource URL referenced in the HTML, not just page links. You want a list of pages that reference any http:// address in src, href, srcset, data attributes and inline CSS. The browser developer console is useful for checking a single page, but it does not scale past a handful of templates.

Common hiding places:

  • Images inserted years ago in the CMS editor with absolute http:// URLs.
  • Custom fields and page builder blocks that store full URLs in the database.
  • Theme or plugin files with a hardcoded CDN address.
  • Open Graph and Twitter card image tags in the head.
  • Embedded iframes from video or map providers added before they supported HTTPS.
  • CSS files that call background images or fonts by absolute HTTP path.

Fix the source, not the symptom. A database search and replace on the protocol, done carefully on a backup first, is usually quicker than editing page by page. Better still, switch to root-relative or protocol-agnostic paths for your own assets so the problem cannot return.

Step 3: Check internal links and on-page signals

Once resources are clean, look at what your pages tell search engines about themselves. Pull these from a full crawl and filter for any URL beginning with http://:

  • Internal links. Every one of these triggers a redirect. Update navigation, footer and in-content links to point directly at the final HTTPS URL.
  • Canonical tags. A canonical naming the HTTP version contradicts the redirect. Fix it in the template.
  • XML sitemaps. Sitemaps should contain only final, indexable HTTPS URLs. If the generator is still configured with the old base URL, every entry is wrong.
  • Hreflang annotations. Alternate URLs must match the protocol of the live pages, or return links may not validate.
  • Structured data. Check url, image and logo properties for HTTP addresses. Note that the schema.org namespace itself is fine either way.
  • Pagination and AMP or alternate links, if you still use them.

Also confirm that your Search Console property setup covers every variant. A domain property captures HTTP, HTTPS, www and non-www together, which makes it much easier to spot leftover HTTP URLs that Google is still reporting.

Step 4: Audit certificates, not just the main one

A certificate check is more than confirming the homepage loads. Work through this list for every hostname you serve:

  • Expiry date. Note when each certificate expires and whether renewal is automated. Automated renewal fails silently more often than people expect, usually after a server or DNS change.
  • Hostname coverage. The certificate must list each name in use, including www, bare domain and any subdomains such as blog, shop or help.
  • Certificate chain. A missing intermediate certificate works in some browsers and fails in others, which makes it hard to reproduce.
  • Protocol support. Old TLS versions should be disabled on the server. Your host or CDN usually controls this.
  • Forgotten subdomains. Old staging, campaign or regional subdomains that still resolve but carry expired certificates. Either renew them, redirect them or remove the DNS record.

Put certificate expiry dates in a shared calendar with a reminder at least 30 days ahead. It is a small habit that prevents a very visible outage.

Step 5: Review redirects and HSTS

With links and certificates in order, tighten the redirect layer. The HTTP to HTTPS redirect should be a single 301 at the server or CDN level, applied to every path and query string, and it should land on the final URL in one hop. Test URLs with parameters and with trailing variations, since custom rules often miss them.

Then consider HSTS, the Strict-Transport-Security header. It tells browsers to use HTTPS for your domain without making an insecure request first. It is worth adding once you are confident everything works over HTTPS, but go in stages:

  1. Start with a short max-age, such as a few minutes or a day, and confirm nothing breaks.
  2. Increase it gradually to a long period.
  3. Add includeSubDomains only after you have verified every subdomain, including forgotten ones, serves valid HTTPS.
  4. Treat preloading as a one-way door. Removal from browser preload lists is slow.

Step 6: Check third-party and external references

Your site also links out and loads outside code. Review outbound links to http:// addresses. Many of those destinations now support HTTPS, and updating the link avoids a redirect for your visitors. Any third-party script that is only available over HTTP should be replaced, since it will be blocked.

How to prioritize what you find

  1. Certificate errors and expired hostnames. Visitors cannot reach the page at all.
  2. Active mixed content. Features break.
  3. Hostname variants that return 200 or chain redirects. Duplicate versions and wasted crawling.
  4. HTTP canonicals, sitemap entries and hreflang. Conflicting indexing signals.
  5. Passive mixed content. Missing images and warnings.
  6. Internal links to HTTP and outbound HTTP links. Cleanup that pays off in speed and tidiness.

Making it routine

The reason these issues return is that new content keeps arriving. An editor pastes an old image URL, a developer adds a plugin with a hardcoded path, a new subdomain launches without a certificate. A one-off check helps, but a recurring crawl catches regressions while they are still small.

A crawler that reports each page's resources, canonicals and redirect status makes this practical. SearchAuditPro runs page-by-page audits of up to 1,000 pages, so you can filter for HTTP references and redirect hops across a whole site rather than sampling templates. Whatever tool you use, schedule the crawl, save the baseline and compare each run against it.

A short HTTPS audit checklist

  • All four hostname variants resolve to one HTTPS URL in a single 301.
  • No HTTP resources load on any page template.
  • Internal links, canonicals, sitemaps and hreflang all use the final HTTPS URL.
  • Every hostname has a valid, unexpired certificate with a complete chain.
  • Renewal is automated and expiry dates are tracked.
  • HSTS is enabled in stages, with subdomains verified first.
  • Outbound links and third-party scripts use HTTPS where available.

None of these checks is complicated, but together they separate a site that merely has a certificate from one that is properly secure. Run through the list once now, fix the high-priority items first and put the rest on a recurring schedule.