Posted in General - No comment

Fix Replytocom Problem on WordPress

Replytocom is a common problem with all webmasters having WordPress blogs. If you check your webmaster tools you can find that under Diagnostics > Html Suggestions page you can see these suggestions of duplicate meta description.

replytcom

There are many ways to fix this problem . However having multiple pages in single site wont cause duplicate content issues as recently mentioned in a Google webmasters discussion , but you may not like the idea of a single page being indexed several times in google .

How to fix this :

  • Edit robots.txt
  • JavaScript method
  • Webmaster Tools
  • Edit .htaccess files

Most of the above methods have been already discussed , but they wont work for you . Why ? Let me explain

1. WordPress creates a virtual robots.txt , so there is no way to edit it

2. Google bots don’t recognize java script , so this wont work either.

3. One legal way to tell google bots not to crawl or ignore your urls. But this method takes time , and probably months before search results stop dropping your urls .

4 . .htaccess is the most effective way. But some guys may have trouble figuring it out. Lets simplify it .

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} .
RewriteCond %{QUERY_STRING} !^(s|p)=.*
RewriteCond %{REQUEST_URI} !.*wp-admin.*
RewriteRule ^(.*)$ /$1? [R=301,L]
</IfModule>

This above codes wont work if your blog exists in an internal directory like our blog. So here is the changed code .

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} .
RewriteCond %{QUERY_STRING} !^(s|p)=.*
RewriteCond %{REQUEST_URI} !.*wp-admin.*
RewriteRule ^(.*)$ /blog/$1? [R=301,L]
</IfModule>

This htaccess code will give 301 permanent redirection for problem URLS leaving original URLSĀ  untouched .Please note that using the above code will cause some plugins like “Insights” to stop functioning .

How to check its working :

Goto google .com . In search box type “site:www.yourdomain.com +replytocomwithout the quotes . This will return only the pages with ?replytocom parameter in them so you can keep a check on how many faulty url’s are being indexed – deindexed by google..

I hope this will solve many of your problems .