{ Gearing your tech needs }

How to avoid duplicacy of pages and content in websites

by harshit on June 13, 2009 · 4 comments

Duplicacy of pages add no real content to the web and do nothing to improve the quality of the search engines output. By offering the same document over and over search engines would offer a horrible product with no variety. For this reason, duplicate pages are often filtered out. This is the exact reason Yahoo! dislikes many affiliate websites.
Duplicacy of content and pages are major cause for search engine optimization.Even if search engines like Google will not always penalizes you for duplicate content, they will still have to choose one of the URLs / pages to show in search results and ignore all other duplicates.

duplicacyPhoto via Sam Ul

If problem is related with WWW-pages and non WWW-pages URLs in the generated XML sitemap will then either be with or without www which may differ from the paths search engines such as Google.
To avoid duplicate content use canonical URL in wordpress.This is the definition given in Google’s Webmaster Central Blog a format that allows you to publicly specify your preferred version of a URL. If your site has identical or vastly similar content that’s accessible through multiple URLs, this format provides you with more control over the URL returned in search results. It also helps to make sure that properties such as link popularity are consolidated to your preferred version.
It is very easy to specify the canonical URL of a page – all you have to do is add this line in the head section…

The purpose of this tag is to prevent the problem of duplicate content.

The best thing about this tag is that all three major search engines(Google, Yahoo and MS Live) support this initiative.
header.php

Go to the theme folder in wordpress(wp-content/themes/
) and open the file header.php in your favorite editor. Now find the line…

and add the following code before that line…

<?php if ( is_singular() ) { ?>
<link rel="canonical" href="<?php the_permalink(); ?>" />
<?php } ?>

Now, it should look something like this…

<?php if ( is_singular() ) { ?> <link rel="canonical" href="<?php the_permalink(); ?>" /> <?php } ?> </head>

That’s it - you are done! Save the file and upload it to your server.

This fix will add the canonical URL tag to all the posts and pages of your blog. If you want to see a blog that have implemented this fix, take a look at the source of this page.
What is a canonical URL?

If you already know you would be surprised at how few webmasters have ever heard of a canonical URL. If you also spend time in Google Groups you will find people scratching their heads and not getting a clear answer as to how to troubleshoot and resolve this troublesome issue in Google.

Hey Bro, why not share this post :
  • StumbleUpon
  • Digg
  • Reddit
  • Technorati
  • Yahoo! Buzz
  • del.icio.us
  • Facebook
  • HackerNews
  • Twitter

Related posts:

  1. Why we call “Content is the King” For anyone who constantly logs on to the Internet...
  2. 15 plus best adsense plugin for wordpress bloggers Every single bloggers wants to earns from their blogs...
  3. How to Avoid Information Overflow in your Blog The proliferation of mass information over the years has...
  4. Top 10 Latest WordPress Plugins Worth Trying WordPress is a high-tech open source publishing platform that...
  5. Top 69 Wordpress plugins for Twitter Managing the twitter together with Wordpress blogs is an...

Subscribe Now

If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get instantly updated for those awesome posts soon to come.

Free Subscription

{ 4 comments… read them below or add one }

1 ashish June 14, 2009 at 2:40 pm

canonical URL,does bing also support this tag

ashish’s last blog post..Exclusive images of Photographers:Photography one of the toughest profession in world

2 Nitesh patel June 16, 2009 at 11:17 pm

@harshit
its good adding some lines of code is better than installing any plugin for duplicate content. thanx

Nitesh patel’s last blog post..How to make standard email for website domains using Gmail aps

3 Harsh Agrawal June 19, 2009 at 1:43 pm

Hey Harishit
if I’m not wrong, All in one SEO pugin take care of canonical URL
more over my hosting be default allow me to select which kinda URl I want to use . i.e Either www or non www.
Thanks for nice article, stumbled.

Harsh Agrawal’s last blog post..9 Killer Blogspot SEO tips For bloggers

4 Hariharakumar June 19, 2009 at 2:52 pm

I wrote similar article on my blog but mentioned some plugins for getting canonical url. But anyways nice post.

Hariharakumar’s last blog post..How to Track the Latest Developments of your Favorite Woo Themes

Leave a Comment

Additional comments powered by BackType

Previous post:

Next post: