How to Remove WordPress replytocom URLs from Google (2026 Fix)

Seeing URLs like yourpost/?replytocom=12345 in Google or in Search Console? WordPress used to add a replytocom parameter to every comment “Reply” link, creating a separate URL for each comment, which can mean hundreds of duplicate copies of the same post for search engines. Here’s how to check if your site still has the problem in 2026 and how to remove replytocom URLs for good.

Remove WordPress replytocom URLs from Google

Quick answer: Make sure every post has a canonical tag (Rank Math and Yoast add it automatically), and make your comment Reply links point to #comment- anchors instead of ?replytocom= URLs, using an SEO plugin setting or the small code snippet below. Don’t block replytocom in robots.txt.

What is replytocom?

When threaded comments are on, each comment has a Reply link. In older WordPress setups that link looked like this:

https://example.com/my-post/?replytocom=12345#respond

It’s meant as a fallback for browsers without JavaScript. But to a search engine, every ?replytocom= value is a different URL showing the same post, so a post with 200 comments could appear as 200 duplicate pages, wasting crawl budget and creating “Duplicate without user-selected canonical” warnings.

How to check your site

  1. Open any post with comments, right-click a Reply link and copy the link address.
  2. If it ends in #comment-12345 or #respond with no ?replytocom=, you’re fine.
  3. In Google Search Console, open Pages (indexing report) and look for URLs containing replytocom under the excluded reasons.

On QuickOnlineTips today, our reply links already use clean anchors like #comment-915835, and every post has a canonical tag pointing to the main URL, so Google ignores any old replytocom URLs it finds.

How to remove replytocom URLs

1. Make sure canonical tags are in place

Rank Math, Yoast SEO and most themes add a <link rel="canonical"> tag pointing to the clean post URL. Check your page source. With this in place, Google treats replytocom URLs as duplicates of the main post and drops them from search.

2. Use your SEO plugin’s crawl cleanup

Yoast SEO has a Remove ?replytocom variables option in its crawl optimisation settings. Rank Math users can rely on canonicals and the code below. Turn on whichever your plugin offers, then clear your cache.

3. Or change the Reply links with code

Add this to your child theme’s functions.php or a code snippets plugin. It rewrites each Reply link to a simple #respond anchor, while WordPress’s comment-reply script still moves the comment form into place:

add_filter( 'comment_reply_link', function( $link ) {
    return preg_replace(
        '/href=(["\'])[^"\']*replytocom=\d+[^"\']*\1/',
        'href="#respond"',
        $link
    );
} );

Test it by clicking Reply on a comment. The form should still appear under that comment, and the link should no longer contain replytocom.

What not to do

  • Don’t block replytocom in robots.txt. If Google can’t crawl those URLs, it can’t see their canonical tag, and they may stay in the index as URL-only results.
  • Don’t look for Search Console’s URL Parameters tool. Google retired it in 2022. In 2011 we fixed this by setting replytocom to “Ignore” there, but that option no longer exists, and Google now handles parameters automatically.
  • Don’t noindex your posts to fix this. You only want the duplicate parameter URLs gone, not the post itself.

How we found the problem in 2011

Back then, Google Webmaster Tools flagged duplicate title tags on our posts, and a site search showed Google indexing replytocom URLs:

Duplicate title tags caused by replytocom URLs replytocom URLs indexed in Google

Setting the parameter to “Ignore” fixed it at the time. Today canonical tags and clean Reply links do the same job. If you’re cleaning up other unwanted URLs, see how to noindex archive subpages.

Frequently asked questions

Are replytocom URLs bad for SEO?

They waste crawl budget and create duplicates, but with a correct canonical tag Google usually handles them without harming rankings. Removing them is good housekeeping.

Will removing replytocom break comment replies?

No. Modern WordPress uses JavaScript to move the reply form, so replies keep working with a simple anchor link.

How long until replytocom URLs disappear from Google?

Usually a few weeks, as Google recrawls them and follows the canonical tags.

Stuck on a gift? Try our free Gift Idea GeneratorIdeas for anyone by age, job, interests and budget, with Amazon.com and Amazon.in linksFind gifts →

Found this useful? Share it with someone who needs it.

Get our free weekly email: new tech guides and tools, no spam.

New and updated tech guides, a free tool worth bookmarking and one useful pick, once a week. No spam, unsubscribe anytime.

One email a week. Unsubscribe anytime. See our privacy policy.

Related Tech Guides

Leave a Reply

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

24 Comments

  1. helpful post…finally got rid of from these type of duplicate content links. Thanks for sharing.

  2. I am facing the same problem please help me whether it will affect google page rank as well………?

  3. Thanks a ton for the great tutorial. i been looking for a solution and just configured the correct replytocom field in google webmasters page. Cheers.

    Rob.

  4. I tried this on Google Webmaster but those replytocom links are still indexed. Do you know why?

  5. This article really helped me to remove a few of my duplicate content issues. thanks for posting it, and I’ll be lookinf forward to more from you, in the near future.

  6. Hi, the redirector plugin is from 2009. Does it still work?

    In addition, how do you handle this issue with the new WMT parameter handling tools?

  7. I was scrapping my head how to make Google Bot stop visiting replytocom versions of posts until I found your article. Thanks for the fix!

  8. Oh this is a great tip. Panda has really hit bad on context to Duplicate content. Every thing has been put under a scanner. All the best! and keep sending these great tips .. pls!

  9. Not sure if it worked…Coz I still see such links part of Google.. Seems like Google is not considering those manual paramteers seriously..
    more over I already have disallow: /*?*
    Disallow: /*?
    In my Robots.txt and wondering how Google ended up indexing such pages.

  10. It is not working for me , I implemented it few months back , Please help me :(

  11. great article, it’s very helpfull for me, thanks for sharing, it’s help my problem on google webmaster

  12. oh I have to many replytocom url…. I never noticed that.
    Thanks god for timely figuring out it.I have remoted it immediately by going this step by step information.

    Thanks to QOT

  13. i think the replytocom has been set to nofollow on WordPress default “comments_template”
    (you can call default comments_template by deleting comments.php)

    however, some WP themes didn’t set replytocom into nofollow, that’s why Google index them…

    CMIIW

  14. Very nice tip to avoid duplicate content. Such little masterpiece is the only thing that makes a blog apart and professional

  15. I was aware about the replytocom problem and was looking for some solution. Thanks for this post.

  16. Was aware of this …but as I see the suggestion “Let google decide” I left out !! But will ignore the replytocom parameter now …

  17. I was not at all aware of this. Thanks for sharing this, I will check this for my blog now.

  18. good tool. I hate duplicate content and I should make it disappear for real!

  19. Thanks for this tips. But anyway, Google automatically ignored “replytocom” url for my blog.