Index Issue

#33750
  • Resolved James
    Rank Math free

    Hello There,
    I saw my site indexed “Categories” and “Search Page” but I turnoff indexing these.

    I want to no-index Categories and search page. Can you help about this?

    Regards
    James

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.

    If the global noindex tags + categories option was enabled after the categories had been created then you will need to edit each of the categories and resave for the noindex option to take effect on your pages.

    Alternatively, if these are too many to edit you can also change all the robots meta for the categories page by using the following filter with some custom code:

    
    /**
     * Allows filtering of the robots meta data.
     *
     * @param array $robots The meta robots directives.
     */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
           //add some logic here to target category and tag pages
    	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 ‘Index Issue’ is closed to new replies.