Support » Fixing WordPress » Add noindex tag into comments RSS FEED page (/feed)

  • Hi All!

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

    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="" 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

Viewing 1 replies (of 1 total)
  • another idea is to use mod_rewrite and return 404 instead of *.html/feed page, but it definitely isn’t right method

Viewing 1 replies (of 1 total)
  • The topic ‘Add noindex tag into comments RSS FEED page (/feed)’ is closed to new replies.