WordPress.org

Ready to get started?Download WordPress

Forums

Add noindex tag into comments RSS FEED page (/feed) (2 posts)

  1. vigilant_spb
    Member
    Posted 1 year ago #

    Hi All!

    I have a problem. RSS is enabled and I get such a pages:

    http://sitecom/blablabla/page.html/feed
    this /feed page is for comments rss

    and the problem is it appears in google's supplemental SERP

    of course I do use robots.txt and have /feed in disallowed section
    google can see it I get "A description for this result is not available because of this site's robots.txt – learn more." in snippet

    so I don't wanna see this pages in SERP. What should I do?

    I have an idea to add meta tag "noindex" to this /feed page but have no idea how to figure it out..
    When I add <meta bla bla bla>to my feed-rss2-comments.php this /feed page stops working
    I tried <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> but it didn't succeed, no error but no tag in source code...

    how can I add metatag or just turn off rss comment feed? if it'll return 404 it will be ok too, I don't wanna use it, I need only main rss

  2. vigilant_spb
    Member
    Posted 1 year ago #

    another idea is to use mod_rewrite and return 404 instead of *.html/feed page, but it definitely isn't right method

Topic Closed

This topic has been closed to new replies.

About this Topic