Sub topic 13
Choosing a fix: redirect, canonical, noindex, consolidate or improve
This chapter assumes you have already grouped duplicates, triaged thin pages by template and intent, and read the existing canonical, redirect, noindex and robots signals. Here you pick one fix for each group.
The working model
Each fix answers two questions. Do users or other pages still need this URL? Does the page have value of its own?
| Fix | What it does | Use it when |
|---|---|---|
| 301 redirect | Sends users and crawlers to another URL permanently | The duplicate has no reason to exist, such as an `http` or trailing-slash variant |
| Canonical | Hints which URL is preferred, while the duplicate stays reachable | Users need the variant, such as a sorted or tracked URL |
| Noindex | Asks search engines to keep the page out of results | The page serves users but has no search value, such as internal search results |
| Consolidate | Merges several weak pages into one stronger page, then redirects the old ones | Several thin pages cover the same topic |
| Improve | Adds unique, useful content | The page has real search intent and weak content |
Redirects and consolidation are the strongest fixes, because the old URL stops competing. A canonical is only a hint. Search engines can ignore it when it conflicts with redirects, internal links or sitemap entries.
Encoding the rules
Writing the rules as code keeps decisions consistent across thousands of rows. Treat the output as a first draft for review. It does not replace judgment.
def choose_fix(group_type, users_need_url, has_unique_value, has_inbound_links):
if group_type == "duplicate":
if users_need_url:
return "canonical to preferred URL"
return "301 redirect to preferred URL"
if group_type == "thin":
if has_unique_value:
return "improve content"
if has_inbound_links:
return "consolidate and redirect"
return "noindex or remove"
return "no action"
print(choose_fix("duplicate", False, False, False))
print(choose_fix("thin", False, False, True))The first call prints 301 redirect to preferred URL. The second prints consolidate and redirect.
Check the existing signals first
Compare your choice with what the crawl already shows. A group that already has a correct canonical may need no change. A page that is both noindexed and canonicalized to another URL sends mixed signals. Pick one.
Common errors
- Canonical plus noindex on the same page. The two signals conflict, so remove one.
- Noindex on a page blocked by robots.txt. Crawlers cannot fetch the page, so they never see the noindex tag.
- Canonical pointing to a redirecting or noindexed URL. The preferred URL must return 200 and be indexable.
- Redirecting thin pages to the homepage. Search engines may treat irrelevant redirects as soft 404s. Redirect to the closest matching page.
- Using noindex to hide a page that needs fixing. If the page has search intent, improve it.
- Fixing symptoms in a spreadsheet. For parameter URLs, a template-level fix such as a canonical rule or link change beats editing individual rows.
Record the decision
For each group, record the preferred URL, the chosen fix, the reason and the expected result. Include the recrawl check that will confirm it, for example "all variants return 301 to the preferred URL". The next chapter uses these notes to verify the fixes.
Exercise
A crawl shows 400 URLs like /shoes?sort=price. They duplicate /shoes, shoppers use the sort links, and the sorted URLs have no inbound links from other sites. Which fix fits, and why?
Show answer
Use a canonical on each sorted URL pointing to /shoes. Shoppers need the sorted URLs, so a redirect would break the feature. Because the URLs are a template behavior, fix the canonical rule in the template instead of editing 400 pages.