Karachi, Pakistan Mon–Sat: 10AM–7PM PKT
Home Services
Design & Development
UI/UX Design Web Development WordPress Development Responsive Web Design Corporate Website Landing Pages / Microsites E-Commerce Solutions Mobile App Development
Marketing & Growth
SEO Services Content Marketing Social Media Marketing PPC / Google Ads Branding & Creative Speed & Performance
Hosting & Support
Web Hosting Maintenance & Support
Portfolio
Website Design Logo & Graphics
Clients About Blog Free Tools Get a Quote
SEO & Speed Guide

Canonical Tags Explained: How to Fix Duplicate URLs for SEO

Why duplicate URLs happen, how to write canonical tags, canonical vs redirect vs noindex, stores and pagination, and how to check Google's chosen canonical.

Canonical tag pointing duplicate URLs to one main page

A canonical tag (<link rel="canonical">) tells search engines which URL is the main version of a page when the same or very similar content is reachable at several addresses. Google then concentrates ranking signals on that URL and shows it in results. Also, every indexable page should carry a self-referencing canonical with its full, preferred URL. Canonicals are a strong hint, not a command, so they only work when your redirects, internal links and sitemap all agree with them. In addition, this guide explains when duplicates happen, how to set canonicals correctly and the mistakes that cause pages to drop out of Google.

Key takeaways
  • Use absolute URLs: https://www.example.com/page, not /page.
  • Give every indexable page a self-referencing canonical.
  • Do not canonical paginated pages (page 2, 3) to page 1, or filtered pages you want indexed to the category.
  • Check Google's chosen canonical with the URL Inspection tool in Search Console.

Canonical tag: why duplicate URLs happen

In fact, most sites create duplicates without anyone noticing:

  • Protocol and host: http://, https://, www and non-www versions.
  • Tracking parameters: ?utm_source=facebook, ?fbclid=..., ?gclid=....
  • Sorting and filters: ?orderby=price, ?color=red on category pages.
  • Trailing slashes and case: /about and /about/, /Shop and /shop.
  • Products in several categories: /men/shoes/runner and /sale/runner.
  • Print, AMP or session-ID versions of the same article.

Duplicates split links and signals between URLs and waste crawling. Google picks one version anyway; a canonical tag lets you choose which.

How to write a canonical tag

Place it in the <head> of the page:

<link rel="canonical" href="https://www.example.com/services/web-design" />

Also, for files that have no HTML head, such as PDFs, send it as an HTTP header:

Link: <https://www.example.com/brochure.pdf>; rel="canonical"

Rules that matter:

  • Also, only one canonical per page. If a theme and a plugin both print one, Google may ignore both.
  • The canonical URL must return 200, not a redirect or 404, and must not be noindexed.
  • It must be in the raw HTML head, not added late by JavaScript if you can avoid it.

Canonical tag: canonical vs 301 redirect vs noindex

ToolVisitors seeUse when
301 redirectOnly the new URLThe old URL should not exist any more (see our redirects guide)
CanonicalBoth URLs still workDuplicates must stay accessible, such as tracking or filter URLs
NoindexThe page worksThe page should not appear in search at all, such as internal search results
Do not combine noindex and a canonical pointing to another page on the same URL. They send opposite signals: "do not index this" and "this is a copy of that".

Canonical tag: pagination, filters and stores

  • Paginated pages (/blog/page/2) should canonical to themselves, because they list different items. Google no longer uses rel="next" and rel="prev".
  • Sort orders (?orderby=price) should canonical to the unsorted category.
  • Filters you want to rank, such as "black lawn suits", work better as real category or landing pages with their own canonical, content and internal links.
  • Products in several categories should use one canonical product URL. WooCommerce does this by default with /product/slug.

Canonical tag: cross-domain canonicals

If you republish your article on Medium, LinkedIn or a partner site, ask them to add a canonical pointing back to your original. Google may still choose differently, so publish on your own site first and let it get indexed.

Canonicals in WordPress and Shopify

  • WordPress: core outputs a canonical on single posts and pages. Yoast SEO, Rank Math and SEOPress extend it to archives and let you override it per post in the Advanced settings.
  • Shopify: themes include {{ canonical_url }} automatically. Collection-aware product URLs (/collections/x/products/y) canonical to /products/y.
  • Override a canonical only when you are sure; a wrong manual canonical can remove a page from Google.

How to check canonicals

  1. View the page source and search for rel="canonical".
  2. In Search Console, use URL Inspection. It shows the "User-declared canonical" and the "Google-selected canonical". If they differ, Google disagrees with your signals.
  3. Check the Pages report for "Duplicate without user-selected canonical" and "Duplicate, Google chose different canonical than user".
  4. Crawl the site with Screaming Frog or Sitebulb to find missing, multiple or non-200 canonicals.

Common canonical mistakes

  • Every page canonicalised to the home page by a broken theme setting.
  • Canonicals pointing to http:// after moving to HTTPS.
  • Staging domains left in canonicals after launch.
  • Relative URLs that resolve wrongly on some paths.
  • Sitemaps listing URLs that canonical somewhere else. List only canonical URLs in your sitemap.
  • Internal links pointing at non-canonical versions, such as with tracking parameters.

Frequently asked questions

Why did Google choose a different canonical?

In addition, other signals disagreed: internal links, redirects, sitemap entries or content differences. Then make all of them point at the URL you want.

Do I need a canonical if I have no duplicates?

Yes. A self-referencing canonical protects against parameter and tracking-link duplicates you cannot control.

Do canonicals pass link value?

In addition, when Google accepts the canonical, signals from the duplicates are consolidated onto it.

Canonical tag in short

Here is the short version. A canonical tag tells Google which page is the main one. Every page should point to itself. Use the full URL with https. Do not point page two at page one. Keep your links, sitemap and redirects in line with it. Then check the result in Search Console. If Google picks a different page, fix the other signals first.

Related guides: Why Website Speed Matters and How to Make Your Site Faster, How to Get Your Website on Google and Lazy Loading Images.

For official guidance, see Google Search Central.

Want a technical SEO audit?

Our SEO team finds duplicate content, canonical errors and indexing problems, and fixes them at the template level. Contact us for a free check.

Written by the ItsWebExpert team, a web design and development company in Karachi building websites, online stores and apps for businesses across Pakistan.

Ask a Question on WhatsApp

Let's Build Your
Next Website

Tell us what you need and we will reply within 24 hours with honest advice and a fixed quote.

Trusted by our clients, rated 5.0 on Google

5.0 11 Google reviews Read all →
I had a great experience working with Waqas and his team. We got some website development and SEO work done, and I'm quite satisfied with the overall results. They understood our requirements, suggested improvements, and handled the work professionally. What I appreciated most was their communication, attention to detail, and willingness to make changes whenever needed. Waqas is very cooperative, and the team knows what they're doing. Definitely a good choice for anyone looking for reliable web development and digital marketing services.
HUHafiz Ubaid Google review · Nov 2026
I was referred to their company by someone, and I'm really glad I connected with them. Waqas, the CEO, is a very humble and professional person who leads his team exceptionally well. Their expertise in digital marketing, web development, and custom development services is impressive. The team is skilled, responsive, and committed to delivering quality work. Had a really positive experience working with them. Highly recommended!
MRMuhammad Rafeeq Google review · Nov 2026
I had hired them for my client's task of Custom Wordpress plugin development. and many other tasks later on.. Waqas is super fast and sharp.. I know him since 2019.. I really really appreciate his work. Highly recommended..
RFRaheela Farooqui Google review · Nov 2026
I had a positive experience working with Waqas and his team. They provided excellent support with graphic design and social media management. The team was professional, responsive, and attentive to our needs. They understood our vision and delivered quality work on time. Highly recommended for anyone looking for creative and reliable digital services.
URUsman Rock Google review · Nov 2026
I really appreciate their dedication and professionalism. They have a good understanding of SEO, social media marketing, and online brand growth. Communication is smooth, and the quality of work is impressive. Definitely a great team to work with!
SSSameer Sarafaraz Google review · Nov 2026
I've had a great experience working with their team. They understand digital marketing very well and know how to improve online visibility through effective SEO and marketing strategies. Professional, responsive, and reliable. Highly recommended! 🙌❤️
MNMohammad naveed Google review · Nov 2026
I had a really good experience with web Experts. Everything was easy to understand, well-organized, and user-friendly. I appreciate the effort and attention to detail that has gone into creating this platform. It was a smooth and pleasant experience, and I would definitely recommend it to others. Keep up the great work!
SSShazia shaikh Google review · Nov 2026
Extremely professional and committed I am Extremely happy to work with them I wish them best of luck Best Regards M. Salman Farooqui
SFSalman Farooqui Google review · Nov 2026
Outstanding experience! Quality, professionalism, and customer service are all excellent. Keep up the great work!
ARabdul rehman Google review · Nov 2026
Excellent service and a great experience. The team is professional, helpful, and dedicated. Highly recommended!
MEmustafa emb Google review · Nov 2026