Remove WordPress Duplicate Content Search Results and Tags from Google

Website’s SEO can be badly affected by the duplicate content. WordPress is SEO friendly Google friendly CMS than other CMS software, but in the case of indexing duplicate contents it behaves in notorious way. One of my sites organic searchers dropped from almost 3000/per day to 200 per day since the Google indexed wordpress 26500 search results in their search index.

You hardly developed wordpress website’s organic terrific can be dropped by 70% if you are not concern well about the URLs that you are indexing in Google so that you need to remove your site’s search results from Google index.

A WordPress site search result simply looks like

http://www.yourdomain.com/?s=xxxxx

You can check you whether you search results have indexed or not by following method. Just search by Google as follow

inurl: yoursite.com “?s=”

Then you can find whether your site’s search results are indexed in Google or not, if yes you need to remove those search results from the Google before it affects to your site.

https://youtu.be/qCBj4fjshcc

TAG indexing also affect to the site ranking since TAGs indexing some duplicate content. You can remove both TAGs and search results by using following code snippets not only remove, but also this PHP codes helps to stop the indexing of the search results pages and tags.

1) Login to the wordpress

2) Click on the Editor submenu under the Appearance menu

3) Select Header (header.php) from the files in right side

(If these file cannot update please change file permission level to 777 and do not forget change it back to 644 after finish the editing)

4) Paste the following PHP code in between the <head> </head> tags and update file.

 

<?php if ((is_search()) || (is_tag() ))  { ?>

<meta name=”robots” content=”noindex,follow”/>

<?php } else { ?>

<meta name=”robots” content=”index, follow”/>

<?php } ?>

If your search results were already indexed by Google it takes quite long time to drop from the Google search results sometimes this might take months. If you need to stop indexing both search results and tags, you can follow the following method.

If you only need to stop indexing tags , you can follow the Only Remove Tag From Google method:

Only Remove Tag From Google Method

According to the SEO and Google’s point of view indexing same consent twice will affect to your search engine ranking, but in most of the website it occurs without knowing the webmaster. As you know indexed in Google is easy but remove the indexed content from Google search results  take longtime some time it takes months.
To avoid index duplicate content you can prevent the indexing TAGs (in the case of wordpress).  It is a straight forward method

1) Login to the wordpress

2) Click on the Editor submenu under the Appearance menu

3) Select Header (header.php) from the files in right side
(If these file cannot update please change file permission level to 777 and do not forget change it back to 644 after finish the editing)
4) Paste the following PHP code in between the <head> </head> tags and update file.

<?php if ( (is_tag() )  { ?>

<meta name=”robots” content=”noindex,follow”/>

<?php } else { ?><meta name=”robots” content=”index, follow”/>

<?php } ?>

However it takes long time to drop the search results from Google search index. Wait patiently till indexed tags drop from the Google search index.
We highly recommend you to stop the indexing search results pages too since it can kill your website one day. Search index removing method will be discuses in the future articles.

Leave a Reply

Your email address will not be published. Required fields are marked *