Feb 28, 2009

Canonical link element?

What is canonical link element?
This is a new, optional directive, that helps to specify the original url of a page.

How it works?
For example, let’s have a page with parameters like this:

http://www.mywebsite.com/index.php?param1=aaa&param2=bbb

Parameters can be session id or anything else. If their value is not relevant to the page we can specify our original (canonical) url in the head section of the page:

<head>



<link rel=”canonical” href=”http://www.mywebsite.com/”>



</head>

We can specify canonical url to a section/page:

<head>



<link rel=”canonical” href=”http://www.mywebsite.com/somepage.php”>



</head>

In short - canonical link element helps identify different links to one page.


More
More about canonical link element can be found at Matt Cutts blog here. And here is Google help information about it.