Google: rel=”canonical” Now Supported In HTTP Headers

Google announced they are now supporting the rel=”canonical” attribute within HTTP headers. This enables webmasters to set up a canonical for linking to or from PDF files or other non-HTML based files. One of the examples given by Google is that a “webmaster can signal to Google that the canonical URL for the PDF download […]

Google announced they are now supporting the rel=”canonical” attribute within HTTP headers.

This enables webmasters to set up a canonical for linking to or from PDF files or other non-HTML based files.

One of the examples given by Google is that a “webmaster can signal to Google that the canonical URL for the PDF download is the HTML document by using a rel=”canonical” HTTP header when the PDF file is requested.”

This also comes in handy when you use a CDN (content delivery network) and the content is being served from many different URLs. You can now use the rel=”canonical” within the HTTP header to set up those redirects for that type of content.

Related Stories:


Search Engine Land is owned by Semrush. We remain committed to providing high-quality coverage of marketing topics. Unless otherwise noted, this page’s content was written by either an employee or a paid contractor of Semrush Inc.


About the Author

Barry Schwartz

Barry Schwartz is a technologist and a Contributing Editor to Search Engine Land and a member of the programming team for SMX events. He owns RustyBrick, a NY based web consulting firm. He also runs Search Engine Roundtable, a popular search blog on very advanced SEM topics.

In 2019, Barry was awarded the Outstanding Community Services Award from Search Engine Land, in 2018 he was awarded the US Search Awards the "US Search Personality Of The Year," you can learn more over here and in 2023 he was listed as a top 50 most influential PPCer by Marketing O'Clock.

Barry can be followed on X here and you can learn more about Barry Schwartz over here or on his personal site.