<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.websitemagazine.com/content/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>'Net Features : rel canonical</title><link>http://www.websitemagazine.com/content/blogs/posts/archive/tags/rel+canonical/default.aspx</link><description>Tags: rel canonical</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP2 (Build: 31104.93)</generator><item><title>SEO Geek: rel=canonical for HTTP Headers</title><link>http://www.websitemagazine.com/content/blogs/posts/archive/2011/07/13/seo-geek-rel-canonical-for-http-headers.aspx</link><pubDate>Wed, 13 Jul 2011 15:24:00 GMT</pubDate><guid isPermaLink="false">1e469e21-c924-44fa-a132-47b5d0a8ad47:17063</guid><dc:creator>Pete Prestipino</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.websitemagazine.com/content/blogs/posts/rsscomments.aspx?PostID=17063</wfw:commentRss><comments>http://www.websitemagazine.com/content/blogs/posts/archive/2011/07/13/seo-geek-rel-canonical-for-http-headers.aspx#comments</comments><description>&lt;hr /&gt;
&lt;p&gt;&lt;img height="100" width="100" src="http://www.websitemagazine.com/images/blog/seo-mini.gif" style="float:left;margin:15px;" alt="" /&gt;&lt;strong&gt;Several weeks ago Google announced support for link rel=&amp;quot;canonical&amp;quot; relationships specified in HTTP headers as per the syntax described in &lt;a target="_blank" href="http://tools.ietf.org/html/rfc5988#section-5"&gt;section 5 of IETF RFC 5988&lt;/a&gt;.&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Editors Note: As a quick aside, Website Magazine will feature a very practical article from Prashant Puri on canonicalization in the Small Business Lab column of our September issue.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;
Webmasters can use rel=&amp;quot;canonical&amp;quot; HTTP headers to signal the canonical URL for both HTML documents and other types of content such as PDF files. For example, perhaps you have a white paper as an HTML page and as a PDF using two URLs - example.com/white-paper.html and example.com/white-paper.pdf. SEO&amp;#39;s can signal to Google that the canonical URL for the PDF download is the HTML document by using a rel=&amp;quot;canonical&amp;quot; HTTP header when the PDF file is requested. 
&lt;br /&gt;&lt;br /&gt;&lt;i&gt;
So how do you apply it? &lt;/i&gt;&lt;br /&gt;If you&amp;rsquo;re using ASP.net, Classic ASP or PHP web pages, here&amp;rsquo;s how:
&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;
ASP.Net C#:&lt;/strong&gt;&lt;br /&gt;
&amp;lt;%Response.AddHeader(@&amp;rdquo;Link&amp;rdquo;,@&amp;rdquo;&amp;lt; http://www.yoursite.com/&amp;gt;; rel=&amp;rdquo;&amp;quot;canonical&amp;rdquo;&amp;quot;&amp;rdquo;);%&amp;gt;
&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;
ASP BLOCKED SCRIPT&lt;/strong&gt;&lt;br /&gt;
&amp;lt;%Response.AddHeader &amp;ldquo;Link&amp;rdquo;,&amp;rdquo;&amp;lt; http://www.yoursite.com/&amp;gt;; rel=&amp;rdquo;&amp;quot;canonical&amp;rdquo;&amp;quot;&amp;rdquo;%&amp;gt;
&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;
PHP:
&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;&amp;lt;?php header(&amp;ldquo;Link: &amp;lt;http://www.yoursite.com/&amp;gt;; rel=\&amp;rdquo;canonical\&amp;rdquo;&amp;quot;);?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
When the web page is requested the server will respond with a 200 status as well as the link header telling Google that the page is a canonical of the URL specified.&lt;/p&gt;
&lt;p&gt;Google provided another instance when this might come in handy. For example, serving the same file from multiple URLs (common if using a content distribution/delivery network). The rel=canonical HTTP header could be used to signal to Google the preferred URL.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.websitemagazine.com/content/aggbug.aspx?PostID=17063" width="1" height="1"&gt;</description><category domain="http://www.websitemagazine.com/content/blogs/posts/archive/tags/seo/default.aspx">seo</category><category domain="http://www.websitemagazine.com/content/blogs/posts/archive/tags/canonical/default.aspx">canonical</category><category domain="http://www.websitemagazine.com/content/blogs/posts/archive/tags/rel+canonical/default.aspx">rel canonical</category></item></channel></rss>