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.
<!-- 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.
Example: with a conflicting canonical, signals may be split between the http and https versions instead of sitting on one URL.
- Visitor or crawler opens https pagePage loads fine
- Canonical says http://Wrong protocol declared
- http redirects to httpsConflicting signal
- 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
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://.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.
Crawl the site
Run a crawler such as Screaming Frog (Canonicals tab) or Sitebulb and filter for canonicals that start with http://.
Test from the command line
Run the command below and look at the output.
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.
Update the site address
Go to Settings > General and set both WordPress Address (URL) and Site Address (URL) to https://. Save.
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.
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.
Check the primary domain
In Settings > Domains, make sure the primary domain is set and SSL is active. Shopify normally outputs an https canonical.
Look in the theme
In Online Store > Themes > Edit code, open theme.liquid and find the canonical line. It should use the canonical_url object, not a typed address.
Set the default domain
In Site settings > Publishing, set your https custom domain as default and enable SSL.
Check the canonical field
In Site settings > SEO, review the Global canonical tag URL, and any custom code in the head, and make sure they use https://.
Look for tags that write a canonical
Open Tags and search for custom HTML that adds or changes a canonical link. If one sets an http address, edit it or remove it.
Build the canonical from the https base
Generate the href from a configured https base URL plus the path, not from the incoming request, which can report http behind a proxy.
Honour proxy headers
If a load balancer or CDN ends SSL, make the app trust X-Forwarded-Proto so it knows the request was https.
<link rel="canonical" href="{{ canonical_url }}">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
- 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
- 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.
Related issues
- SEO-054Both http and https versions resolve with 200Fix guide
- SEO-052Google chose a different canonical than declaredFix guide
- SEO-043Canonical points to a 404, redirect or noindex URLFix guide
- SEO-045Canonical points to the staging or development domainFix guide
- SEO-042Missing rel=canonical on indexable pagesFix guide
- SEO-053Both www and non-www versions resolve with 200Fix guide