HTTP Link rel="canonical" Header
An HTTP response header that declares a canonical URL without editing HTML—essential for consolidating PDFs, whitepapers and non-HTML downloads to their canonical HTML landing page.
Verified
Syntax / Example
HTTP/2 200 OK content-type: application/pdf Link: <https://www.example.com/reports/2026-study>; rel="canonical"
Verify On A Live URL
curl -sIL https://example.com/report.pdf | grep -i "^link:"
Documented Facts For HTTP Link rel="canonical" Header
| Metric or Rule | Documented Value | Source |
|---|---|---|
| Primary use case | Canonicalizing PDFs & non-HTML resources | Google: Consolidate Duplicate URLs (Canonical)Checked November 25, 2026 |
| Syntax requirement | Absolute URL inside angle brackets (<...>) | Google: Consolidate Duplicate URLs (Canonical)Checked November 25, 2026 |
| Google handling weight | Strong hint (same as HTML rel=canonical) | Google: Consolidate Duplicate URLs (Canonical)Checked November 25, 2026 |
Official Specification & Google Behavior
Documented by Google Search Central alongside RFC 6596 / RFC 8288. Google processes HTTP Link rel="canonical" headers with the same strong-hint weight as HTML <link rel="canonical"> tags.
SEO & Indexing Impact
Stops downloadable PDFs from cannibalizing your main HTML guide in Google Search and consolidates backlinks pointing at PDF files onto your canonical web page.
Backlink Monitoring Verdict
Invisible in View Source—run curl -sIL and inspect the Link response header whenever a linking PDF or document appears not to index cleanly.
Common Pitfalls
- Sending conflicting canonicals—one in the HTTP Link header and a different URL inside the HTML <link rel="canonical"> tag.
- Omitting angle brackets around the URL or using a relative path instead of an absolute https:// URL.
Frequently Asked Questions
- How do you add a canonical tag to a PDF file?
- Because PDF files have no HTML <head>, configure your web server or CDN to send the HTTP response header Link: <https://example.com/page>; rel="canonical".
- Can I use both an HTML canonical tag and an HTTP Link canonical header?
- Google recommends using one method consistently—or ensuring both emit the exact same absolute URL so Google does not ignore conflicting signals.
- How do I verify an HTTP Link canonical header?
- Run curl -sIL on the URL and inspect the returned HTTP headers for Link: <...>; rel="canonical".
Primary Sources
Verified
- Google: Consolidate Duplicate URLs (Canonical)November 25, 2026
- RFC 9110: HTTP SemanticsNovember 25, 2026
Related Research Guides
- November 27, 2026Canonical Tags And Duplicate Content: Why Google Ignores Your Canonical And How To Fix It60% of the web is duplicate content and 67% of mobile pages use rel=canonical—yet Google treats it as a hint. How canonicalization works and fixes.
- November 18, 202611 Technical SEO Checks Ranked By Indexing Impact: Status Codes, Crawl And CWVEleven technical SEO audit checks ordered by indexing impact—covering HTTP status codes, robots.txt leaks, 27.4-day indexing and Core Web Vitals.
- November 20, 2026How Google Search Works: Crawling, Indexing And Ranking In Numbers61.94% of 16 million tracked pages were not indexed. See how Google Search works: crawling, indexing and ranking, with Google's own numbers.