How to fix an incorrect canonical URL
Open the page source, find the rel="canonical" tag, and change it so it points to the page's own clean, live address (or to the one true version if the page is a real duplicate). Then fix the template, plugin or setting that produced the wrong value, so it does not return.
A canonical tag tells search engines which web address is the main version of a page. When it points to the wrong URL, you are telling Google to ignore the page the visitor is on and to show some other page instead. It is a small line of code in the page header, which is why it often goes unnoticed for months.
What the problem looks like
The tag sits in the <head> of the page and looks like this:
<link rel="canonical" href="https://www.example.com/blue-widgets/">
It is wrong when the address in href is not the one you want to rank. Common versions:
- Every page canonicals to the homepage, usually from a template or plugin setting.
- The tag points to a staging or test site (for example
staging.example.com) after a site was copied live. - It uses
http://when the site runs onhttps://, orwwwwhen the live site uses the non-www version. - A product or blog page points to a different product or category.
- Page 2, 3 and so on of a list all point to page 1.
- The tag points to a URL that redirects, returns an error or is set to noindex.
- There are two canonical tags on one page (often one from the theme and one from an SEO plugin), and they disagree.
What owners usually notice is indirect: a page will not show up in Google, the wrong page shows up for a search, or Search Console reports pages as duplicates.
Why it matters
Google treats the canonical tag as a strong hint, not an order. If your hint looks wrong, Google may ignore it and pick its own choice, which may not be the page you want customers to land on. If it believes you, the page you actually care about can drop out of search results because it is treated as a copy of something else.
That costs you visits and sales. A product page missing from search, or a visitor landing on an out of date page, is a lost customer. It can also confuse your own reporting, because traffic gets credited to the wrong address. Related issues are covered in www and non-www duplicates, which is a very common cause.
How to check your site for free
- View the source. Open the page in your browser, right click and choose View page source (or press Ctrl+U, Cmd+Option+U on Mac). Search for
canonical. Check that the address matches the page you are on, includinghttps,wwwor not, and the trailing slash. - Use Google Search Console. Paste a page address into the URL Inspection tool. It shows the user-declared canonical (what your page says) and the Google-selected canonical (what Google chose). If they differ, look closer.
- Check the Page indexing report. Statuses such as "Alternate page with proper canonical tag" and "Duplicate, Google chose different canonical than user" are worth reading. The first is often normal. It is only a problem if the page should be on its own.
- Crawl the site. The free version of Screaming Frog SEO Spider crawls a limited number of pages and lists canonical addresses for each. Sort by pages whose canonical differs from their own address.
- Check the HTTP header. Canonicals can also be sent as a
Linkheader, which does not show in page source. In a terminal,curl -I https://www.example.com/page/shows it if present.
How to fix it in general
- Decide the one correct address for each page:
https, your chosenwwwor non-www form, and a consistent trailing slash. - Make most pages point to themselves (a self-referencing canonical). Only point to a different page when it is a true duplicate, such as a printable version or a product shown under several URLs.
- Use full absolute addresses, starting with
https://, rather than relative ones. - Make sure the target returns a normal page (status 200), is not redirected and is not set to noindex.
- Keep one canonical tag per page. If you find two, switch off the canonical output of either the theme or the plugin.
- Fix the source, not each page by hand. A wrong value on hundreds of pages almost always comes from one template or one setting.
- Make sure your sitemap lists the same canonical addresses.
Common platforms
Menu names change between versions and themes, so treat these as where to look.
- WordPress: The canonical is usually added by core or by an SEO plugin such as Yoast SEO or Rank Math. Check the plugin's Advanced section on the page for a canonical field that may have been filled in wrongly, and check Settings, General for the right site address. See the WordPress guide.
- WooCommerce: Same as WordPress, plus check product variations, categories and filter or sort URLs.
- Shopify: Themes normally output the canonical in
theme.liquidusing thecanonical_urlvalue. A wrongly edited theme or an app can break it. See the Shopify guide. - Wix: Look in the page's SEO settings (Advanced SEO) for a custom canonical or tag override.
- Webflow: Check the site level setting for a canonical URL and the page's SEO settings, and make sure custom code in the head is not adding another.
- Next.js: Look for
alternates.canonicalin the metadata, and make sure the base URL is set to the live domain, not localhost or a preview address. - Magento: Under Stores, Configuration, Catalog, Catalog, Search Engine Optimization (depending on your version), there are usually settings for using canonical link tags on categories and products.
If you are not a developer, send your developer the page address, the wrong canonical you found and the address it should be.
How to confirm the fix worked
- View the page source again (clear any cache first) and confirm the tag shows the right address.
- In Search Console, run URL Inspection, then Test live URL, and check the user-declared canonical.
- Use Request indexing on your most important pages.
- Wait. Google has to recrawl the pages before the Google-selected canonical changes, and this can take days or weeks depending on the site.
- Recheck the Page indexing report later to see the affected pages drop.
How to stop it coming back
- Check canonicals after every site move, redesign, theme change or switch to https.
- When copying a staging site live, check that its settings are not carried over, and that the live site is not blocked from search either.
- Be careful with SEO plugin updates and new apps that touch the page header.
- Keep one agreed address form for the whole site, and redirect all others to it without long redirect chains.
- Review canonicals regularly. SiteMonday's week 1 SEO review looks at this and lists it in a ranked fix list, though the fix itself is up to you or your developer.
Step by step for your platform
- Canonical pointing to wrong URL on WordPress
- Canonical pointing to wrong URL on Shopify
- Canonical pointing to wrong URL on WooCommerce
- Canonical pointing to wrong URL on Wix
- Canonical pointing to wrong URL on Webflow
- Canonical pointing to wrong URL on Next.js
- Canonical pointing to wrong URL on Magento
Questions
Is a canonical tag the same as a redirect?
No. A redirect sends visitors and search engines to another address. A canonical tag leaves the page in place and only suggests to search engines which version to treat as the main one.
Should every page have a canonical tag?
It is good practice for most pages to have a self-referencing canonical. It protects you from duplicates caused by tracking parameters or alternate address forms.
Will Google always follow my canonical tag?
No. It is a strong hint, not a command. If other signals such as redirects, links and the sitemap disagree with it, Google may choose a different address.
Can I point all my pages to the homepage?
No. That tells Google every page is a copy of the homepage, so your other pages may stop appearing in results. Only point to a different page when it really is a duplicate.
How long until Google picks up the corrected canonical?
It depends on how often Google visits your pages. It can take from a few days to several weeks, and requesting indexing in Search Console can help for key pages.
Does SiteMonday fix the canonical for me?
No. SiteMonday finds and explains the problem in its week 1 SEO review. Fixing it is the job of the site owner or their developer, and fixes can be quoted separately.