Hi @seotaro, thanks for your question.
We have seen on rare occasions where a spam website adds links on their spam website for WordPress search query string URLs for other websites. The WordPress search query string URLs for these other websites contain spam keywords. When a bot, such as Google’s crawler, finds such a URL it will crawl it and index that spam WordPress search query string URL in Google search results. This happens because WordPress generates a page that says, “Sorry, but nothing matched your search terms. Please try again with some different keywords.” Google considers this to be a legitimate website page and indexes it because WordPress doesn’t add a noindex parameter to the robots meta tag for search query string URL’s. This appears to be an attempt by spammers to improve the search engine optimisation for their spam website but would not work for improving their search engine optimisation.
WordPress fixed this in version 5.7: https://core.trac.wordpress.org/ticket/52457
We suspect that when Google crawls these URL’s again that you are seeing in your Google Search Console then Googlebot will see the noindex parameter and start to remove these URL’s from its index and search result pages.
Thanks,
Peter.
Hi, Thank you for your response.
The bot reindexed the links as you said, and the spam links were marked as nofollow.
Screenshot > https://imgsh.net/a/iMVo8Wi.jpg
But is this all I need to do?
I am using latest WordPress and Is there any way to get rid of the a page that WordPress generates that says, “Sorry, but nothing matched your search terms.”?
I am using Google search for my website, so I don’t use WordPress’ default search function.
I already have more than 100 times as many non-indexed pages as actual indexed pages in GSC.
Thank you.
-
This reply was modified 1 year, 6 months ago by seotaro.
Hi @seotaro, thanks for your reply.
That should be all you need to do, as the nofollow links will automatically drop off Google’s radar over time.
You’d need to contact the general WordPress support forums such as Everything Else WordPress if you wish to get advice on changing the search behavior.
Thanks,
Peter.