← ClaudeAtlas

canonicalslisted

Choose between rel=canonical, 301 redirects, noindex and robots.txt for duplicate or near-duplicate URLs, and detect canonical conflicts: canonical pointing to a redirect or noindex page, multiple canonicals, relative canonicals, canonicals set by JavaScript, and Google choosing a different canonical than the user. Use when the user asks 'canonical tag', 'duplicate content', 'Duplicate without user-selected canonical', 'Google chose different canonical', 'Alternate page with proper canonical tag', 'which URL should rank', 'parameters or www/https duplicates', or 'canonical vs redirect vs noindex'. Uses sitetiller page, pages and inspect.
sitetiller/ai-visibility-skills · ★ 0 · AI & Automation · score 75
Install: claude install-skill sitetiller/ai-visibility-skills
# Canonicals Goal: for each group of duplicate URLs, one preferred URL, declared with consistent strong signals, and a check that Google agrees. Google is clear that a canonical preference is a hint and not a rule: it may choose another URL. ## Choose the tool | Situation | Use | Google's description | |---|---|---| | Old URL should disappear for good | 301 or 308 redirect | "a strong signal that the target of the redirect should become canonical" | | Duplicates that must both stay reachable (parameters, print versions, similar pages) | `rel="canonical"` | "a strong signal" | | Preferred URLs listed in the sitemap | sitemap inclusion | "a weak signal"; use it as a supporting signal | | Page must stay out of search results | `noindex` | not a canonicalization tool: Google does not recommend noindex to prevent selection of a canonical within one site | | Keep a page from being crawled | robots.txt | do not use for canonicalization; a blocked page's tags are never read | | Non-HTML file (PDF) | `Link: <url>; rel="canonical"` HTTP header | works for non-HTML files | Methods can stack. Do not name different canonicals in different methods for the same page. ## Rules for the tag (Google) - Absolute URL, not relative. - Inside `<head>`; it is only accepted there. - One canonical per page. Use the HTML element or the HTTP header, not both. - The canonical page carries a self-referencing canonical. - `rel="canonical"` with `hreflang`, `lang`, `media` or `type` attributes is not us