Feed urls crawled bt search console

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

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Feed URLs are not created for humans but for RSS feed crawlers and readers. They are only basic code versions of your actual content pages, and they are usually generated by WordPress as Rank Math features do not include feed generation on a site.

    You can add the following filter on the website to set the feed URLs to noindex:

    add_action( 'template_redirect', 'noindex_feeds' );
    function noindex_feeds() {
        if ( ! is_feed() ) {
            return;
        }
    header( 'X-Robots-Tag: noindex', true );
    }

    Hereā€™s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    However, please note that when you set noindex to your feed URLs that means Google will not index them on SERPs, but Google will still be able to crawl those URLs. If you donā€™t want Google to crawl those URLs, then you can add the following disallow rule to your robots.txt file.

    Disallow: */feed/

    Hereā€™s a guide on how to edit your robots.txt using Rank Math:
    https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/

    Once done, allow Google some time to re-crawl your site to reflect the changes.

    Hope that helps.

    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 ‘Feed urls crawled bt search console’ is closed to new replies.