Sub topic 13
Choosing a fix: redirect, canonical, noindex, consolidate or improve
By this point you have clusters of duplicate URLs and groups of thin pages, and you have read the signals each URL already sends. This chapter covers the next step, which is picking one fix per group. It assumes you can read a crawl export in pandas or a spreadsheet and that you know the HTTP status codes and what a link element in the page head does. It also assumes you have already built clusters with a preferred URL and triaged thin pages by template and intent.
The five fixes at a glance
Each fix answers a different question. A redirect removes a URL. A canonical tag keeps the URL but names a preferred one. Noindex keeps the URL for users and asks search engines to leave it out of the index. Consolidation merges content. Improvement adds value to a page that should stay.
| Fix | What happens to the duplicate URL | Strength | Best for | Main risk |
|---|---|---|---|---|
| 301 or 308 redirect | Users and crawlers are sent to the target | Strong, close to a directive | Protocol, host and trailing-slash variants, retired pages, merged pages | Redirect chains, redirecting to an unrelated page |
| Canonical tag | Stays reachable, is treated as a copy of the target | A hint the engine may ignore | Parameter and sort variants that users still need | Conflicting signals make the engine choose for you |
| Noindex | Stays reachable, is dropped from the index | Strong once the page is crawled | Useful-to-users pages with no search value, such as internal search results | Blocking the page in robots.txt hides the tag |
| Consolidate | Several pages become one, old URLs redirect | Strong, and it concentrates links | Overlapping thin pages on one topic | Losing a distinct query the old page served |
| Improve | Page stays and gains unique content | Slow, needs editorial work | Thin pages with real demand or links | Padding with filler adds words but no value |
Ask the questions in order
Work through four questions for every cluster or thin group. The order matters because the earlier questions are cheaper and more certain.
- Does anyone need this URL? If it exists only because of a configuration accident (http versus https,
wwwversus bare host, a trailing slash), nobody needs it. Redirect it. - Do users need it, but search engines do not? Filtered views, sort orders, internal search results and printer pages fit here. Use a canonical tag if the content is a near copy of a main page. Use noindex if the page has no equivalent worth pointing to.
- Is the content unique but too small? Check intent. A page that fully answers a narrow question can be short and fine. If several small pages cover the same topic, consolidate them. If a single page has demand but little substance, improve it.
- Does the page have no value and no users? Remove it and return 404 or 410. Redirect it only if a close equivalent exists.
Redirects
Use a permanent redirect (301, or 308 when the request method must be preserved) when the old URL should stop existing. Three checks from the crawl keep redirects clean.
- Target status. The target must return 200. Redirecting to a page that itself redirects creates a chain. Update the rule so the old URL points straight to the final page.
- Relevance. Send each URL to its closest equivalent. Mass redirects to the homepage are usually treated like soft 404s, so the old page's value is not passed on.
- Internal links. After adding a redirect, update internal links and sitemap entries to the target. A crawl full of links to redirecting URLs shows the cleanup was not finished.
Redirects are the right choice for the variants you found when normalizing URLs. If http:// and https:// both return 200 with the same content, the fix is a site-wide redirect rule, not a canonical tag on every page.
Canonical tags
A canonical tag is a hint placed in the head of the duplicate page. It names the preferred URL.
<link rel="canonical" href="https://example.com/shoes/">Search engines may follow it or ignore it. They weigh it against redirects, internal links, sitemap entries and the content itself. That makes consistency the whole job. Check these in the crawl:
- The canonical target returns 200, is indexable, and is not itself canonicalized elsewhere.
- The canonical URL is absolute and uses the same protocol and host you chose as preferred.
- Internal links and the sitemap point to the canonical URL, not to the variants.
- The two pages really are near copies. A canonical tag from a different page, such as a distinct product to a category page, is often ignored and can look like a mistake.
Canonical tags suit parameter URLs that users still need, such as ?sort=price. They suit syndicated content too, when you control the republished copy. A self-referencing canonical on every indexable page is a sensible default because it protects against stray parameters.
Noindex and robots
A noindex robots meta tag, or the equivalent X-Robots-Tag HTTP header, tells search engines to keep the page out of the index. It is the right choice for pages that are useful to visitors but have no stand-alone search value, such as internal search results, thank-you pages and thin tag archives with no better target.
<meta name="robots" content="noindex, follow">Two gotchas come up often in crawls.
- Do not block noindexed pages in robots.txt. A crawler that cannot fetch the page cannot see the tag, and the URL can stay indexed from external links. Let the page be crawled until it drops out.
- Do not combine contradictory signals. A page that is noindex but is the canonical target of other pages tells the engine to drop the page you wanted to keep. A page that is canonical to X and also in the sitemap as its own URL sends mixed messages.
Robots.txt controls crawling, not indexing. Use it to save crawl budget on endless parameter spaces, but not as a way to remove duplicates.
Consolidating and improving
Consolidate when several pages each cover a slice of one topic and none is strong. Pick the page with the most links or traffic as the target, move the useful content into it, then redirect the others. The merged page should answer every query the old pages served. Check search performance data for each old page before merging, so you do not drop a distinct query.
Improve when a thin page has demand, links or a clear purpose that the content fails to meet. Improvement means adding information that is unique to the page, such as specifications, reviews, explanations or original data. Adding repeated paragraphs to cross a word-count cutoff does not count. If many pages are thin because one template exposes too little data, fix the template once instead of editing pages by hand.
A rule-based first pass
You can encode the decision flow to produce a first suggestion for every group in a spreadsheet. A human then reviews the exceptions. This sketch uses fields you would add to your cluster and triage tables.
def suggest_fix(row):
"""Return a first-pass fix for one duplicate cluster or thin group."""
if not row["needed_by_users"]:
return "301 redirect" if row["has_equivalent"] else "404 or 410"
if row["is_copy"]:
return "canonical" if row["has_target"] else "noindex"
if row["is_thin"]:
if row["overlaps_other_pages"]:
return "consolidate and redirect"
return "improve" if row["has_demand"] else "noindex"
return "no action"
groups = [
{"name": "http variants", "needed_by_users": False, "has_equivalent": True,
"is_copy": True, "has_target": True, "is_thin": False,
"overlaps_other_pages": False, "has_demand": False},
{"name": "sort parameters", "needed_by_users": True, "has_equivalent": True,
"is_copy": True, "has_target": True, "is_thin": False,
"overlaps_other_pages": False, "has_demand": False},
{"name": "tag archives", "needed_by_users": True, "has_equivalent": False,
"is_copy": False, "has_target": False, "is_thin": True,
"overlaps_other_pages": True, "has_demand": False},
]
for g in groups:
print(g["name"], "->", suggest_fix(g))The output is 301 redirect, canonical and consolidate and redirect. Treat these as suggestions. The function cannot see whether a canonical target is healthy or whether a merge would lose a query, which is why the checks in the sections above still happen by hand.
Putting it together
| Finding in the crawl | Likely cause | First choice |
|---|---|---|
| Same text at `http://` and `https://` | Missing site-wide redirect | 301 redirect |
| Same product at `?utm_source=...` | Tracking parameters | Canonical to the clean URL |
| 4,000 pages under 100 words, all `/tag/` | Thin template, little demand | Noindex, or consolidate into topics |
| Three 300-word guides on one topic | Overlapping content | Consolidate and redirect |
| One short page with strong backlinks | Valuable but underdeveloped | Improve |
| Discontinued product, no replacement | Retired content | 410, or 301 if a close substitute exists |
Exercise
A crawl shows 800 URLs like /jackets?sort=price-asc that return 200, have the same product list as /jackets in a different order, and are linked from a sort menu that shoppers use. The pages are blocked in robots.txt. What fix would you choose, and what would you change about the robots.txt rule?
Show answer
Users need these URLs, and the content is a near copy of /jackets, so use a canonical tag on each sorted URL pointing to /jackets. Redirecting would break the sort menu, and noindex is less precise because a good target exists. Remove the robots.txt block, or at least allow crawling of these URLs. If crawlers cannot fetch the pages, they cannot read the canonical tag, and the URLs may remain indexed from links.
Exercise
A page is set to noindex and is also the canonical target of five parameter variants. What is wrong, and how do you fix it?
Show answer
The variants tell search engines that this page is preferred, while the page itself says to drop it from the index. The engine may drop the whole group. Remove noindex from the preferred page so it can be indexed, or if the group should not be indexed at all, drop the canonical tags and apply noindex consistently.