How to Use the Canonical Tag

A new tag has come into play for webmasters this past year. The top search engines Google, Yahoo and Microsoft said back in February that their search engine spiders will acknowledge the “canonical” tag.

The tag which appears in the header of your webpage looks like:
<link rel=”canonical” href=”http://example.com/page.html”/>

But what the heck does it do?

Well it instructs the spiders to index your page using the URL assigned to the href. For example if the actual URL of the page is “http://www.dailyindia.com/user.php?id=johnbob&status=abcd” and in that page I have
<link rel=”canonical” href=”http://www.dailyindia.com/johnbob.html”/> the site will be indexed as “http://www.dailyindia.com/johnbob.html”.

The end result is pretty similar to that of a 301 redirect, perhaps just easier to understand and to implement. The 301 is still stronger because it applies to both spiders and humans.



Filed under SEO, Web Design and tagged

Leave a Reply

** Comment Policy: Real simple, don't spam. That means refrain from the use of keywords in your anchor text and don't use your company/website in the name field. We reserve the right to edit/delete your comments as we choose. All first comments will go through moderation.

Stay Connected with Geekwerks

Subscribe Now

  • Recent Comments

    • Michael Swanberg: Wow! THE Randal Schwartz commented on my blog? Awesome! Don’t be modest. You are “da...
    • Randal L. Schwartz: You made my day. Not about how unreadable the book is, but that you liked it. :)
    • Michael Swanberg: Oh come on… I don’t think that not having Flash makes the iPhone “useless to...
    • ASHIIMMY: Say what you will but not having flash on the iPhone renders many websites useless on the iPhone and that...
    • Trey Karroach: VRy wonderful to look into it

    Ad