How to block a certain address in the site map and how to block the addresses of

#43940
  • Resolved 唐淼
    Rank Math free

    Hello

    I used woocommerce

    But I don’t want the shop page to appear in the site map. How can I block it

    In addition, I have many products, but some of them don’t want to appear in the site map. I didn’t find batch modification, or I modified the product page to no index through the import method

Viewing 3 replies - 1 through 3 (of 3 total)
  • Todd
    Rank Math free

    Hi,

    Thanks for getting in touch with us.

    You can go to your shop page and mark it noindex from the Advanced Tab:
    null

    About the products not appearing in the sitemap, please check their index settings. If they are set to noindex, they will not appear in the Sitemap.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    唐淼
    Rank Math free

    Hello

    I’ve blocked the shop page. Thank you

    But is there any way to set the product index to no index in batch

    I need to block a lot of products

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    I am afraid that we don’t yet have a bulk update option to configure this setting. You can however write some custom code to achieve this using this filter:

    /**
     * Allows filtering of the robots meta data.
     *
     * @param array $robots The meta robots directives.
     */
    add_filter( 'rank_math/frontend/robots', function( $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 3 replies - 1 through 3 (of 3 total)

The ticket ‘How to block a certain address in the site map and how to block the addresses of’ is closed to new replies.