Indexing of “/Search/” Query

#257737
  • Resolved Sandeep Jinagal
    Rank Math free

    It’s strange for me, even I asked this question in many groups but no one have a satisfactory answer.

    I have a WP Blog with Rank Math Pro Installed [A Group buy Product]. And we know WordPress has search functions like “domain.com/?s=” but I am getting bots search queries on “domain.com/search/” [it does not even exist on my blog].

    My blog daily gets 1K-2K bots search query from last 1-2 year but from last 1 month its starts getting indexed. I mean “domain.com/search/abc+query” is indexing but does not even exist.

    Even its set to disallow in robots txt [ disallow: /search]. So I am manually removing each indexed query.

    [Check Screenshots]



Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    We don’t allow for the group buy with our plugin and every user should have their own subscription to use on the website.

    Having said that, if those pages were indexed it’s likely because at some point in the last month you changed the robots meta tags settings on those pages and the pages were indexed.
    ​​​​​​​
    Right now it seems that the search pages are correctly retrieving the noindex tag and so no more pages should be indexed from here.

    You can check the settings for the search pages under WordPress Dashboard > Rank Math > Titles & Meta > Misc Pages.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

    No, Please Understand. Search function is already set to Noindex. And Search Function is (domain.com/?s=).

    But I am getting fake bot query in search console on (Domain.com/Search/). How I can set them to Noindex if they do not exist.

    Please understand the question first.

    And my Robots TXT file is not changed. Even why I am getting such query. May third party Indexing tools are doing this. Any way to block such

    Ankit
    Rank Math business

    Hello,

    Please use the below filter code into your theme’s function.php file:

     add_filter( 'rank_math/frontend/robots', function( $robots ) {
    
    	$url = home_url( $_SERVER['REQUEST_URI'] );
    	if(strpos($url,"/search/") !== false)  {
    		$robots['index'] = "noindex";
    		$robots['follow'] = "nofollow";
    	
    		return $robots;
    	};
    
    	return $robots;
    });

    Then, observe the situation and let us know.

    Looking forward to helping you. Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Ankit
    Rank Math business

    Hello,

    As I can see your /search/* path is already set to noindex and the issue seems to be revolved now. Do let us know if you need our assistance with anything else. It would be our pleasure to help you again.

    Thank you.

    Actually it’s not solved because I manually removed all bot created search “domain com/search/*”. But still my Search console is getting 2k-3k query per day. Even query are still not related to my website.

    Ankit
    Rank Math business

    Hello,

    As I just check some of the URLs and I am not able to replicate the issue. Could you please share some of the affected URLs? Please kindly share as a text.

    Looking forward to helping you. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Indexing of “/Search/” Query’ is closed to new replies.