How to use Canonical links with Joomla to avoid duplicate content

As a SEO aware web developer, you should learn about canonical links and how to use them in Joomla.

Canonical links are tags you enter into your page to ensure that Google indexes the correct page, and to avoid duplicate entries in the Google index.

Many sites have a problem with duplicate entries in the Google index. This can happen when you use several links to the same page. For instance, a page might be referenced like this:
or like this:
The latter link is from Google Adwords, and contains a parameter and a value to tell the tracking software where the click came from (this is just a simplified example). This might seem unproblematic. However, since Google base their indexation upon following links from other sites, you might (and probably will) end up with two occurances of the same page in Google. Also, the fact that some people link to and others to, can lead to duplicate content in the search engines.

There are several ways to avoid duplicate cotent in the search engines. XML sitemaps, 301 redirects, linking consistently to or respectively, setting up Google Webmaster Tools correctly etc. However, sometimes you don't have full control over the server or other elements of the site.

Enter canonical links!

Canonical links (preffered links) are, as I mentioned, link tags that contain the preferred URL to the page. The link tag can look like this:

<link rel="canonical" href="" />
Matt Cutts -canonical links
Matt Cutts talking about canonical links
Placed in the head area of your source code, the link tag tells Google what the correct URL to the page is. And voila: No more duplicate entries (it might take some time to see them disappear if you already have them, though). Google, Yahoo and Microsoft announced support for the canonical link element on February 12th 2009.
Matt Cutts from Google has written extensively on this subject, and here are some of his articles and videos describing it:

So how to use Canonical Links with Joomla

The first thing is that you need to use the sh404SEF component for Search Engine Friendly (SEF) URLs.

When you have this in place, you need to install the Canonical Links plugin from Gnome on the Run. You can download it here. This creates the canonical link tag for your SEF URLs automatically.

It might also work with other SEF extensions, but I haven't tried that out.

Good luck on avoiding duplicate content!

Read 25607 times Originally published on Wednesday, 24 June 2009 11:44
Last modified on Wednesday, 24 June 2009 10:40
comments powered by Disqus