• Resolved scooterlord

    (@scooterlord)


    Hello,

    I checked bot the plugin and Google Search console and couldn’t find a way to exclude specific queries.

    For some reason a lot of queries of the following form appear in the google results:
    https://www.mydomain.com/search-parts/?_sf_s=&authors=XXX

    What I am looking for is a way to remove all results that are indexed by google that include a query with the word ‘authors’.

    Thank you in advance for your time!

Viewing 1 replies (of 1 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @scooterlord,

    Thank you for contacting the support and sorry for not following up quickly and any inconvenience that might have been caused due to that.

    You can use our robots filter to set the page with author query string to noindex:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    	if ( isset( $_GET['author'] ) ) {
    		$robots['index'] = 'noindex';
    	}
    	return $robots;
    });

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude specific queries from appearing in results’ is closed to new replies.