Canonical Tag: How to Fix Duplicate Content

Canonical tag setup starts by picking one preferred address per page then checking what Google selected in Search Console with help from Usher Media

Two matching grey armchairs facing each other against a yellow and white wall with a black hat on one

A canonical tag is a line of code that tells search engines which address is the preferred version when the same or very similar page can be opened in more than one way. Get it right and your ranking signals point to one page. Get it wrong and Google may show a version you never meant to promote.

This guide shows Indian small business owners and their developers how to choose the preferred page, add the code, handle common variants and check the result.

Long row of matching roller doors and entrances painted in blue, yellow, red and green
Many addresses can look alike, so name the one that counts

What Is Canonical Tag Markup and What Does It Do?

It is a link element with rel="canonical" placed in the head section of a page. Developers often shorten the name to rel canonical. It names the page you want treated as the main copy.

  • Visitors never see it and are not moved anywhere. Both addresses keep opening as before.
  • Google's guide to consolidating duplicate URLs calls it a strong signal, so treat it as a clear request and not a command.
  • The address inside it is called the canonical URL, and it can be the page itself or another page.
  • None of the canonical methods are compulsory. Without one, Google picks the version it finds most suitable.

Why Do Duplicate Pages Appear on a Small Website?

Most copies are created by the website itself, not by anyone copying text. One product, service or article ends up reachable through several addresses.

  • Both http and https versions open.
  • Both the www and non-www host names open.
  • Tracking or ad parameters are added after a question mark.
  • Sorting and filtering options on a shop create new addresses for the same list.
  • A product sits inside two categories and gets two paths.
  • A trailing slash, capital letters or a print view adds a second copy.

Do You Need a Duplicate Content Checker?

A checker or site crawler is useful when you have many pages, because it lists pages with matching titles or text. A small site can often find the main problems by hand first.

  • Type your home page with and without www, and with http and https, and see where each one lands.
  • Add a made-up parameter such as ?test=1 to a key page, then view the source and read which address the page declares.
  • Search the page source of your top pages for the word canonical and note missing or wrong entries.
  • Open the Page indexing report in Search Console and read the reasons that mention duplicates.
  • Treat any tool's result as a list to review, not a verdict.

What Does a Canonical Tag Example Look Like?

Suppose a shop page for running shoes also opens with a tracking parameter. Both versions should carry the same line in the head, pointing to the clean address.

  • Clean page: https://www.example.com/running-shoes
  • Tracked copy: https://www.example.com/running-shoes?utm_source=newsletter
  • Line to place in the head of both: <link rel="canonical" href="https://www.example.com/running-shoes">
  • On the clean page this is a self-referencing line, which Google recommends adding to the preferred page too.

Which Rules Should the Line Follow?

Small mistakes can make the signal unclear or get it ignored. Run through these points whenever a developer adds or edits it.

  • Put it inside the head section. Google only accepts the link element there.
  • Write the full absolute address, including https:// and the host name, instead of a relative path.
  • Keep one such line per page and do not let two plugins each print their own.
  • Do not point to an address with a # fragment.
  • Point to a live page that loads normally, not to one that redirects or returns an error.
  • Keep it in the HTML source where possible, and make sure scripts do not change it later.

How Do You Fix Duplicate Pages Step by Step?

Fix the pattern, not one address at a time. Work in this order and keep a simple sheet of each duplicate and its chosen main page.

  1. List the addresses that show the same or nearly the same page.
  2. Pick one preferred version for each group, usually the clean https address you want customers to land on.
  3. Decide whether the other versions must stay open. If not, redirect them.
  4. Add the canonical line to the preferred page and to every copy that stays open.
  5. Update menus, internal links and your sitemap so they all use the preferred address.
  6. Check a sample of pages in Search Console and review again after Google has recrawled them.
Black and white one way arrow sign fixed to a wooden pole in front of leafy branches
Point every copy in one direction

Should You Use a Canonical or a 301 Redirect?

Choose by asking whether visitors still need the second address. A redirect sends them away from it, while the annotation leaves it open.

Method Use it when Visitor sees
301 redirect Old page is retired The new page
rel="canonical" Copy must stay open The page they opened
Sitemap entry Supporting your choice No change
noindex Page should stay out of search The page they opened
  • Google describes redirects and rel="canonical" as strong signals and sitemap inclusion as a weak one. They work better when they agree.
  • Use a permanent server-side redirect only when you are retiring the duplicate.
  • Google does not recommend noindex as a way to steer which page becomes the main one within a site.
  • Do not block copies in robots.txt for this purpose. Google cannot read the content of a blocked page.
  • Do not use the Search Console removal tool either, because it hides every version of the address from Search.

How Should You Handle www, HTTPS and Parameter Variants?

Host and protocol variants are best settled once for the whole site. Parameter copies are usually settled by the page template.

  • For http to https, set a site-wide permanent redirect and keep a valid security certificate. Google prefers https pages unless other signals conflict.
  • For www and non-www, pick one host, redirect the other to it and use the chosen host in every canonical line.
  • For tracking parameters, let the template point back to the clean address.
  • For filters and sorting, point to the main list only when the filtered view is really the same content. A filtered page that deserves its own search traffic should name itself.
  • For numbered pages of a list, each page shows different items, so do not point them all to the first page by habit.

What About PDFs and Other Language Versions?

Some files have no head section, and some copies exist for a different audience. Both need slightly different handling.

  • For a PDF that repeats a web page, a developer can send the canonical address in the HTTP response header.
  • If you run English and Tamil versions with language annotations, point each page to a canonical in its own language, not all to the English one.

Where Should Your Developer or CMS Add the Tag?

Many content systems and SEO plugins add the line automatically, so check what your site already prints before adding anything. The setting often sits in the page or template options.

  • View the source of a home page, a service page, a blog post and a product page, because each template can behave differently.
  • If a field lets you override the address for one page, leave it empty unless you mean to point elsewhere.
  • After a redesign or domain change, check that no line still names the old or test site.
  • If you are planning a rebuild, ask your web development company in Chennai to agree the preferred address format before launch.

How Do You Check the Canonical in Search Console?

Your code shows what you asked for. Search Console shows what Google decided. Paste the full address into the inspection bar and open the Page indexing section.

  • The URL Inspection tool shows the user-declared canonical and the Google-selected canonical.
  • A live test cannot predict which version Google will choose, so rely on the indexed result.
  • Requesting indexing after a fix does not guarantee that the page will appear in Google.
  • If you have not set the property up yet, start with our Search Console guide for beginners.
Magnifying glass resting on a blank sheet of tan paper beside a pen on a wooden table
Look closely at what each page really declares

Which Page Indexing Statuses Matter?

The Page indexing report groups addresses by reason. Not every duplicate status is a fault, since copies are not supposed to be indexed.

Status shown What it means Your action
Alternate page with proper canonical tag Points to an indexed main page Usually none
Duplicate without user-selected canonical No preference declared Declare one
Duplicate, Google chose different canonical than user Google prefers another address Compare both pages
Page with redirect Address forwards elsewhere Confirm the target
  • When Google disagrees with you, compare the two pages, then check redirects, internal links and the sitemap for mixed signals.

How Does Usher Media Review This for Clients?

At Usher Media, the starting point is Report Zero, our audit before any work is proposed. Its website and technical step checks speed, structure, mobile performance and technical issues that affect rankings, and ends in an action plan with priorities.

  • One case study on that page, from a cosmetic clinic, lists missing pages and an unoptimised structure, and the advice was to fix the structure first.
  • Duplicate addresses belong in the same kind of technical review. The Report Zero process page shows what else it covers.
  • For ongoing work, our SEO company in Chennai service includes technical SEO.
  • To review the rest of your site yourself, follow our technical SEO checklist.

Frequently asked questions

Will adding rel=canonical remove the other page from my website?

No. The other address keeps opening for visitors and nothing is deleted. The line only tells search engines which version you prefer. If you want visitors moved to the preferred page, set up a permanent redirect for the old address.

Is listing the preferred page in my sitemap enough on its own?

Usually not when real copies exist. Google treats a sitemap entry as a weak signal and still decides which pages are duplicates. Keep the sitemap clean, then back it with a redirect or a declared preference on the pages themselves, so all your signals name the same address.

Why does Google show a different address from the one I declared?

Your declaration is one signal among several. Redirects, internal links, sitemap entries and the page content can point elsewhere. Compare the two addresses in URL Inspection, remove the mixed signals and make sure the page you prefer is the complete one.

How soon will a fix show in Search Console?

It changes only after Google crawls the affected addresses again and processes them, and no fixed date is promised. Check the indexed result of a few sample pages after some weeks, and avoid changing the declared address repeatedly while you wait.

Should every product colour or size have its own page in search?

It depends on whether people search for that variation and the page offers something distinct. If a colour page is nearly the same as the main product, point it to the main one. If it has its own photos, details and demand, let it name itself.

Do I need a developer to set this up?

Not always. Many content systems and SEO plugins offer a field for it. You will usually need a developer for template-wide parameter handling, server redirects and headers on PDF files, so decide who owns each task before starting.

Not Sure Which Page Version Google Has Picked?

Usher Media's SEO service includes technical SEO. Send us your website address and we can look at duplicate addresses, redirects and declared versions, then tell you what to fix first.

Check My Duplicate Pages →