Viewing 4 replies - 1 through 4 (of 4 total)
  • wfdave

    (@wfdave)

    Hi @helloyouhelloyou,

    Even after uninstalling, these pages may still be indexed in Google’s search console.

    What seems to work is disallowing these query strings to be index by adding these lines into your robots.txt:

    Disallow: /*?*wordfence_lh=
    Disallow: /*?*hid=

    Once you’ve updated your robots.txt, remember to recrawl robots.txt so Google gets an updated copy.

    Dave

    Thread Starter helloyouhelloyou

    (@helloyouhelloyou)

    Hello Dave.

    Thank you for the reply. I will try that. Also while I was looking for the solution to the problem, I came across this as well. Any thought?

    Adding the following code in.htaccess.

    RewriteCond %{QUERY_STRING} wordfence_
    RewriteRule .* [R=404,L]

    Thanks

    W.

    wfdave

    (@wfdave)

    Hi again,

    I would remove those two lines. You want Google to stop indexing those pages, not to return a 404 to your users.

    Dave

    Thread Starter helloyouhelloyou

    (@helloyouhelloyou)

    Hello Dave.

    Thank you again for your help. Appreciate it!

    Regards

    W.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google crawl error after uninstallation’ is closed to new replies.