How to avoid duplicacy of pages and content in websites

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.

You may also like...

22 Responses

  1. Alvin Koay says:

    How To Avoid Duplicacy Of Pages And Content In Websites http://adjix.com/f7mx

  2. RT @AlVinKoay How To Avoid Duplicacy Of Pages And Content In Websites http://adjix.com/f7mx

  3. Nitesh patel says:

    @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

  4. 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

  5. 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

  6. Reading how to avoid duplicacy of pages and content in websites | Tech Prone http://is.gd/16wCH

  7. Raju says:

    RT @denharsh: how to avoid duplicacy of pages and content in websites | Tech Prone http://is.gd/16wCH

  8. I simply want to mention I am just new to blogging and site-building and truly savored this website. Most likely I’m going to bookmark your blog . You definitely have beneficial stories. Kudos for sharing your web-site.

  9. tirage voyance en ligne parisVisiter le nouveau site web : voyance gratuite amour

  10. Gettysburg says:

    223220 726560cool thanks for reis posting! btw are there feeds to your weblog? I

  11. Reggie Zipay says:

    I received an e-mail about starting a website for a small business. I don’t yet have a business but I would like to start my own personal website..

  12. How do I import Firefox bookmarks and other settings from one user account to another?

  13. Sean Roperto says:

    In Firefox I normally use right-click > “Open in new tab” when browsing web pages. This can also be done when clicking on a bookmark. . . Is there any way to get Firefox to do this automatically (by default) when left-clicking a bookmark instead of having to do the right click?.

  14. Hi, i think that i saw you visited my site so i came to \93return the favor\94.I am trying to find things to improve my web site!I suppose its ok to use a few of your ideas!!

  15. Hey there! Do you know if they make any plugins to safeguard against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

  16. Hi! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains. If you know of any please share. Cheers!

  17. Wow that was unusual. I just wrote an extremely long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Regardless, just wanted to say fantastic blog!

  18. Interesting blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your theme. Kudos

  19. Robbie Callo says:

    I’m trying to see how can you prevent the content from being removed on a youtube video due to copyright. I really just want to see what material can you use so that youtube will not remove the content. Like with music, should you use music from like a CD instead of downloading it from like itunes? Can you give me any suggestions?.

  20. Woah! I’m really enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between superb usability and visual appeal. I must say that you’ve done a amazing job with this. Additionally, the blog loads super fast for me on Internet explorer. Superb Blog!

Leave a Reply