How do I set a noindex tag for RSS feed?

#665341
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, I apologize for the issue you’re facing with the RSS feed pages being indexed by Google. To set a noindex tag for your RSS feed pages and prevent them from being indexed, you can follow these steps:

    1. Install and activate the Rank Math SEO plugin if you haven’t already.
    2. Go to your WordPress dashboard and navigate to “Rank Math SEO” in the left-hand menu.
    3. Click on “Titles & Meta” and then select the “Posts” tab.
    4. Scroll down to the “RSS” section.
    5. Enable the “Noindex RSS” option.

    Here’s a screenshot for reference:

    Enabling this option will add a noindex tag to your RSS feed pages, preventing search engines like Google from indexing them.

    After making this change, it’s important to clear any cache and wait for Google to recrawl your website. This will ensure that the updated settings take effect and the RSS feed pages are properly noindexed.

    If you have any further questions or concerns, please feel free to reach out to our support team. They will be more than happy to assist you.

    Sources:
    Fix Excluded by NoIndex Tag – Google Search Console Status » Rank Math
    Using Rank Math’s ‘Quick Actions’ Admin Menu Item
    Advanced Tab in Rank Math SEO’s Meta Box
    How to Fix the Submitted URL Seems to Be a “Soft 404” Error » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.

    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.

    Let us know how it goes. 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 2 replies - 1 through 2 (of 2 total)

The ticket ‘How do I set a noindex tag for RSS feed?’ is closed to new replies.