Google Maps

Can I use robots.txt or noindex to deal with duplicate pages on my site?

Expert answer

Google’s page says not to use robots.txt for canonicalization, because disallowed URLs may still be indexed without their content. It also does not recommend noindex for choosing a canonical within a site, since noindex fully blocks the page from Search. Use rel=canonical instead. The page also warns against the URL removal tool for this purpose.

Source: Google Search Central: What is URL canonicalization, per the help page as of 22.11.2026

What Google’s help says

  • Don’t use robots.txt for canonicalization; Google may still index disallowed URLs without their content.
  • Noindex is not recommended for choosing a canonical within a site.
  • Noindex completely blocks the page from Search.
  • Use rel=canonical instead.
  • The page also says not to use the URL removal tool for canonicalization. Checked 22.11.2026.

In our experience

We do it like this: for two near-identical pages we choose rel=canonical or a redirect, not noindex.

We do not block either page in robots.txt.

What is your situation?

Both pages must stay open. Use rel=canonical.
One page is obsolete. Redirect it.
Tempted to block with robots.txt. The page says not to.

Steps

  1. Find the duplicate pages.
  2. Decide which one is the main version.
  3. Add rel=canonical to the other page or redirect it.
  4. Remove any robots.txt block or noindex used for this.

How to know it worked

  • Duplicates are handled by canonical or redirect.
  • No duplicate is blocked by robots.txt.

Different result? For the signals and their strength, see the page on choosing a page. For self-canonicals, see the page on that.

Other ways people ask this

robots.txt for duplicate pages. noindex for duplicate content. Block duplicate pages from Google. Canonical or noindex. URL removal tool duplicates.

Need help?

Send the link to your profile, your email and your type of business (optional). We reply within 3 days.
Example of the answer you get: "You know robots.txt and noindex are not the way to choose a canonical."

Knowledge base: review request

How we handle your details: Privacy policy.

  • Which page should my Google profile link to: the homepage or a location page?
  • Should I block or allow ChatGPT and other AI bots in robots.txt?

* Where we say "in our experience", this is what we have seen on our clients’ listings, not a rule of Google. Platforms do not disclose their algorithms, so that nobody can game them, and we may be wrong.