---
name: check-canonical-url-signals
description: "Compare a page's HTML rel=canonical, HTTP Link canonical header and sitemap entries with the URL the publisher wants indexed, and list every signal that points somewhere else. Use when canonical tags conflict, Search Console reports a different canonical, or a duplicate page needs its signals checked."
license: CC-BY-4.0
metadata:
  author: Raq.com
  version: "2026-11-22"
  homepage: https://skills.raq.com/skills/check-canonical-url-signals
---

# Check canonical URL signals for a page

Find disagreement between a page’s declared preferred URL and signals provided by its HTML, HTTP headers and sitemap.

## When to use this skill

- Someone has a page's head markup, response headers and sitemap entries and wants to know whether they all point to the preferred URL.
- Search Console reports that Google chose a different canonical from the one the site declared, and the team wants to see what the site itself says.
- Print, filtered, tracking-parameter or PDF versions of a page need their canonical signals checked after a change.

## When not to use it

- Predicting which URL Google will choose. Google treats these as hints and also weighs redirects, internal links and content.
- Planning redirects in a migration. Use the redirect map skill; a permanent redirect is the stronger signal when a duplicate is being retired.
- Checking hreflang language alternates, which is a separate review of rel=alternate annotations.

## What you need

- Absolute page URL and publisher’s chosen preferred URL for an equivalent group of pages.
- Supplied HTML link elements, HTTP Link headers and the entries actually published for this duplicate group in the sitemap.

## Ask before you start

If any of these are missing or unclear, ask before doing the work.

- Which URL do you want to be canonical for this group of duplicate pages?
- Can you supply the rendered head, not just the template, and the raw response headers? Scripts can add or change canonical links, and a Link header never appears in page source.
- Which sitemap entries belong to this duplicate group?

## Method

1. Keep three things apart: the publisher's preferred URL, the signals the site sends, and any canonical a search engine has selected. Only the first two are in scope.
2. Collect HTML canonicals only from link elements with rel=canonical inside the head of the rendered page; Google accepts the element only in the head. Resolve a relative href against the document's base URL, which is the base element if present, otherwise the page URL.
3. Collect HTTP Link header values with rel="canonical" and resolve relative targets against the response URL. Ignore other relations such as alternate, prev or next, and canonical links carrying hreflang, lang, media or type, which Google does not use for canonicalisation.
4. Collect the sitemap entries for the duplicate group. Every URL in a sitemap is a suggested canonical, so a listed duplicate competes with the preferred URL.
5. Compare each declared target with the preferred URL exactly, keeping scheme, host, path case and meaningful query parameters. List every target that differs, in the order html, http, sitemap, keeping source order within each. A matching signal does not cancel a conflicting one.
6. If evidence about the preferred URL itself is supplied, check that it returns 200, does not redirect, does not declare a canonical to another URL and carries a self-referencing canonical. RFC 6596 advises against canonical targets that redirect, return errors or point elsewhere.
7. Treat a missing mechanism as acceptable. Report each conflict with its fix, without promising which URL a search engine will pick.

## Checks before you deliver

- A link to a translated page with rel=alternate is not another canonical declaration.
- Sitemaps indicate a weaker preference than redirects or canonical links. Multiple hints do not form a guaranteed vote.
- A canonical link placed in the body, or pushed out of the head by invalid markup or late scripts, is ignored by Google. Check the rendered head.
- Relative canonical targets resolve against the page or base URL, so a print or staging path can produce an unexpected target. Google recommends absolute URLs.
- Two canonical declarations on one page should be reduced to one even when one of them is right. RFC 6596 advises a single canonical per resource.
- Using robots.txt or noindex to force a canonical hides or removes content rather than consolidating it. Google advises against both for this purpose.

## How to present the result

Start with whether every observed signal agrees with the preferred URL. Then give a table of each signal (HTML head, HTTP header, sitemap), its resolved target and whether it matches. For each conflict, give the exact change, such as the corrected link element or header value, and what to recheck afterwards. Say plainly that the search engine's own choice may still differ.

## Worked example

**Request:** Check this duplicate group. Preferred https://press.example/story. Page https://press.example/story?print=1. No base element.

**Supplied material:**

```text
head: <link rel="canonical" href="/story">
HTTP Link: </archive/story>; rel="canonical"
sitemap entry: https://press.example/story
```

**Answer:** The print page’s HTML and the sitemap point to https://press.example/story. Change the HTTP Link canonical from https://press.example/archive/story to https://press.example/story and recheck the response headers.

## Structured output for tests

For an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.

Return conflicts as an ordered list of objects with channel and target. Use channel html, http or sitemap in that order and preserve within-channel source order. Include only observed destinations different from the preferred URL.

## Sources

- [Google Search Central canonical URL guidance](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls): Ranks redirects and rel=canonical as strong signals and sitemap inclusion as weak, accepts the canonical link element only in the head, recommends absolute URLs, ignores canonical links with hreflang, lang, media or type, and advises against declaring different canonicals through different methods or using robots.txt for canonicalisation.
- [RFC 6596, the canonical link relation](https://www.rfc-editor.org/rfc/rfc6596.html): Defines rel=canonical for HTML and the HTTP Link header and allows relative targets. It advises a single canonical per resource and avoiding targets that redirect, return errors or declare a canonical of their own.

Test cases and an answer checker for this skill: https://skills.raq.com/skills/check-canonical-url-signals
