Advertisement
We all know that duplicate content can be a problem. People copy your work, re-post it on their website, then you both are penalized for duplicate content! Unfortunately, there isn’t much that can be done about that, but did you know that often blogs have duplicate content within their own blog? The biggest culprit for duplicate internal content is your archives page, which is usually used for categories and monthly archives. Unless you only display partial posts in your archives, you’ll want to make sure Google doesn’t index it. If you aren’t handy with Robots.txt, you can instead use this code to easily tell Google not to index your archive.php page.
<?php if(is_archive()){ ?>
<meta name=”robots” content=”noindex”><?php
} ?>
You’ll want to grab that code and paste it anywhere in the header of your theme above the closing of the head tag. That way, Google will not index these, and search engines won’t refer traffic to your archive pages instead of your single post pages.
Previous articlePrevent Duplicate Pages with Permalink Redirect
Next article10+ Excellent WP Plugins for daily use!
Muhammad Furqan Abid
I am an experienced Web Developer and Tech Reporter, and I am passionate about writing on web design and development as well as tech news and updates and like to keep myself updated on the latest developments.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here