I want to remove links of queries and filters from Google

#819733
  • Resolved Fendo Switzerland
    Rank Math free

    Hello, I hope you are well

    How about links
    ?query_type_farbe=or&filter_groesse=2xl-it,s-it&filter_material=lana,pelle-di-bufalo,seta,viskose-it&query_type_material=or&filter_farbe=beige-it,beige-it-2,bianco,blu-navy-it,bordo-it , cammello, dorato, verde-scuro

    ?filter_groesse=2xl-it,s-it&filter_material=lana,pelle-di-bufalo,seta,viskose-it&query_type_material=or&query_type_farbe=or&filter_farbe=beige-it,beige-it-2,blu-navy-it,bordo-it,camello , dorato, rosso, verde-scuro

    How to no indexing in Google?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, I hope you are well.

    To exclude specific words or phrases from Google search results, you can use the minus sign - before the term you want to exclude. If you want to exclude specific URLs or phrases, you can enclose them in quotation marks "" and add the minus sign before the opening quotation mark.

    Here is an example of how you can exclude words from Google Search results:

    • To exclude a word: Add a minus sign before the word (e.g., -camera).
    • To exclude a site: Add a minus sign before the site’s URL (e.g., -site:example.com).
    • To exclude a phrase: Enclose the phrase in quotation marks and add a minus sign before the opening quotation mark (e.g., -"your phrase").

    By following these steps, you can effectively exclude specific words, phrases, or URLs from appearing in Google search results.

    If you have any further questions or need assistance, feel free to reach out.

    Sources:
    Remove “rank-math-link” Class from All Outbound Links » Rank Math
    How to Exclude Words From Google Search » Rank Math

    I think you did not understand what I meant

    Filters and queries links are indexed in my search console

    And now I want to NO-index this

    How do I do it with RankMath?

    Hello,

    In this case, you can use this filter on your site to set those kind of filtered URLs to noindex and nofollow:

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

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘I want to remove links of queries and filters from Google’ is closed to new replies.