Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Canonical uses http on an https site: how to find and fix it

SEO-046Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

The canonical tag looks like <link rel="canonical" href="...">. It tells search engines which URL is the main one when the same content can be reached at several addresses.

This issue happens when the page loads on https:// but the canonical href starts with http://. It is common after a move to SSL, when a site address setting, a theme, an SEO plugin or hard-coded template still holds the old protocol.

Example of the problemhtml
<!-- Page URL: https://www.example.com/pricing/ -->
<link rel="canonical" href="http://www.example.com/pricing/" />

Why it costs you leads or sales

A canonical is a hint, not a command. Google may ignore it, but when it is followed, your pages can be indexed under the http address. That address usually redirects to https, so the signals conflict: the page says one thing and the redirect says another.

Mixed signals can slow indexing, split ranking signals between two versions and show the wrong URL in results. Browsers may also show a warning on the insecure address, which hurts trust on pages where people fill in forms or pay.

Where ranking signals can goExample numbers
Where ranking signals can go (example)Correct https canonical (https): 100 % of signals; Conflicting canonical (https): 60 % of signals; Conflicting canonical (http): 40 % of signals038771006040Correct https canonic…Conflicting canonical…Conflicting canonical…% of signals

Example: with a conflicting canonical, signals may be split between the http and https versions instead of sitting on one URL.

How the mismatch plays out
  1. Visitor or crawler opens https pagePage loads fine
  2. Canonical says http://Wrong protocol declared
  3. http redirects to httpsConflicting signal
  4. Google picks a URLMay index the wrong one

The page is on https, but its canonical points back to http.

How to check if your site has it

Three quick checks
  1. View the page source

    Open a key page, right-click, choose View page source and search for canonical. Read the href. It should start with https://.

  2. Use URL Inspection in Search Console

    Paste the https URL. Compare 'User-declared canonical' with 'Google-selected canonical'. An http value in either is a flag.

  3. Crawl the site

    Run a crawler such as Screaming Frog (Canonicals tab) or Sitebulb and filter for canonicals that start with http://.

  4. Test from the command line

    Run the command below and look at the output.

Print the canonical of a pagebash
curl -s https://www.example.com/pricing/ | grep -i 'rel="canonical"'

How to fix it

The cause depends on where the canonical is generated. Find that source first, then change the protocol there. Do not patch single pages if a site-wide setting is wrong.

Fix by platform
  1. Update the site address

    Go to Settings > General and set both WordPress Address (URL) and Site Address (URL) to https://. Save.

  2. Check your SEO plugin

    In Yoast SEO, Rank Math or similar, look for a custom canonical URL on the page and for hard-coded http values in the general settings. Clear any old entry.

  3. Search for old URLs in the database

    If URLs are stored as http, use a search-and-replace tool after taking a backup. Then clear caching plugins.

Shopify: canonical in theme.liquidliquid
<link rel="canonical" href="{{ canonical_url }}">
Canonical on /pricing/

Before

  • href starts with http://
  • Redirect and canonical disagree
  • Search Console may show an http canonical

After

  • href starts with https://
  • Redirect, links and canonical all agree
  • One clear URL to index

How to confirm it's fixed

Confirmation checklist
  • View source on the home page, a service page and a blog post: every canonical starts with https://
  • A crawl shows zero canonicals starting with http://
  • URL Inspection shows an https user-declared canonical
  • Clear caches and CDN, then recheck, as old HTML can linger
  • Sitemap URLs also use https://

Google can take days or weeks to update the chosen canonical. Request indexing for your most important pages to speed it up.

How to prevent it happening again

Prevention
  • Include a canonical check in every migration or domain change plan
  • Store the site base URL once, as https, and reuse it
  • Avoid typing full URLs into templates
  • Re-crawl after theme, plugin or CDN changes
  • Review the Pages report in Search Console for canonical warnings monthly

How FunnelGuard handles this

FunnelGuard does not check canonical tags yet. A canonical protocol check is a possible future addition, but it is not available today.

What FunnelGuard does do is run your real customer journeys, such as lead forms and checkouts, on a schedule and check each step, tracking hits and test leads. That covers whether the funnel works, not how your pages are canonicalised.

To watch for this issue, schedule a monthly crawl in a tool like Screaming Frog or Sitebulb, filter canonicals starting with http://, and review canonical reports in Google Search Console. The free read-only FunnelGuard website audit is another way to get a general look at your site.

Questions people ask

Why is my canonical tag showing http instead of https?

Usually a setting or template still holds the old protocol. Common sources are the site address in your CMS, an SEO plugin's custom canonical, a hard-coded theme line, or an app behind a proxy that does not know the request was https.

Does an http canonical on an https page hurt SEO?

It can. It sends a conflicting signal, since the page says http while the redirect says https. Google may pick either, so signals can be split and the wrong URL may appear in results.

How do I check which canonical my page uses?

View the page source and search for rel="canonical", or run a curl command and grep for it. For Google's view, use the URL Inspection tool in Search Console and compare declared and selected canonicals.

Should canonical URLs be absolute or relative?

Use absolute URLs with the full https:// address. Relative canonicals are allowed but easier to get wrong, and they can inherit the wrong protocol.

How do I fix the canonical http to https in WordPress?

Set both addresses to https in Settings > General, then check your SEO plugin for a custom canonical on the page. Clear any caching plugin and recheck the page source.

How long does Google take to pick up the corrected canonical?

It varies from a few days to several weeks, depending on how often Google crawls the page. Requesting indexing in Search Console for key pages can help.

Does FunnelGuard check for canonical tag problems?

No. FunnelGuard does not check canonical tags yet. It monitors funnels such as forms and checkouts, tracking hits and test leads, so use a crawler and Search Console for canonicals.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.