WordPress.org

Forums

disable rss feeds (2 posts)

  1. nesornet
    Member
    Posted 2 years ago #

    I ran across a previous post asking how to disable rss feeds.
    I just determined the following solution, which I apply to the bottom of my .htaccess

    RedirectMatch 404 ^.*\/feed$
    RedirectMatch 404 ^.*\/feed\/.*$
    RedirectMatch 404 ^.*\/rss$
    RedirectMatch 404 ^.*\/rss\/.*$
    RedirectMatch 404 ^.*\/trackback$
    RedirectMatch 404 ^.*\/trackback\/.*$

    Note this also disables access to */rss and */trackback

    I hope somebody can confirm that this method is in fact correct and if so I hope it helps others get rid feeds when its undesired

    Thanks in advance

  2. Patrick Nommensen
    Multisite Master
    Posted 2 years ago #

    I think there's better ways to do that. Rather than playing with the web server why not deal directly with WordPress? See this code http://plugins.svn.wordpress.org/disable-feeds/trunk/disable-feeds.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.