Google Adds HTTP Header Support to rel= "canonical"

Chris CrumSearchNewsLeave a Comment

Share this Post

Google is now supporting link rel="canonical" relationships specified in HTTP headers. Evidently this was heavily requested, as the feature is in response to webmaster feedback.

The syntax can be found in this document. Google Webmaster Trends analyst Pierre Far outlines an example on the Webmaster Central Blog:

To see the rel="canonical" HTTP header in action, let’s look at the scenario of a website offering a white paper both as an HTML page and as a downloadable PDF alternative, under these two URLs:
In this case, the 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; for example:
GET /white-paper.pdf HTTP/1.1
( of HTTP request headers...)

HTTP/1.1 200 OK
Content-Type: application/pdf
Link: ; rel="canonical"
Content-Length: 785710
(... rest of HTTP response headers...)

Far also notes that the canonical tag in HTTP headers might help when a site serves the same file from multiple URLs, such as a content distribution network, when the webmaster wants to let Google know the preferred URL.

The support is for web search only.

Last month, Google's Matt Cutts discussed some reasons (which are few and far between) why Google might skip your canonical tags:

If you're unfamiliar with rel="canonical" altogether, watch our interview with Cutts from when it was first launched:

Chris Crum
Chris Crum has been a part of the WebProNews team and the iEntry Network of B2B Publications since 2003. Follow Chris on Twitter, on StumbleUpon, on Pinterest and/or on Google: +Chris Crum.

Leave a Reply