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

{ 4 comments… read them below or add one }
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
@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
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
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