No Index Query String

#10875
Viewing 1 replies (of 1 total)
  • Hello,

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

    I have modified your code to the following:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    if ($_GET || is_product()) {
    $robots['index'] = 'noindex';
    $robots['follow'] = 'nofollow';
    return $robots;
    }
    return $robots;
    });

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

The ticket ‘No Index Query String’ is closed to new replies.