WordPress RSS Feed Returning 404

11,882

Solution 1

My hunch is that you don't actually have any blog posts, but you are using WP as a pseudo-CMS. From having looked at the feed and network conditions (CDN / cloud hosting can sometimes ignore feed content), things are working as they should.

Your 404 does provide some useful information about the feed:

<lastBuildDate>Fri, 11 May 2012 10:14:42 +0000</lastBuildDate>

Which is awhile ago, relatively speaking. I'm guessing that your site content is all based on pages, which don't and shouldn't actually show up in RSS feeds.

To fix the problem, you'd have to make some blog posts or try this plugin or its variant:

http://wordpress.org/extend/plugins/rss-includes-pages/

Edit: turns out WP syndication setting was set to show -1 posts. Fixed by setting it > 0.

Solution 2

I was using custom post type for my primary website content, so to include more post types use this in your functions file:

function customfeed_request( $request ) {
    if ( isset($request['feed']) && !isset($request['post_type']) ) {
        $request['post_type'] = array('post', 'my_custom_post_type');
    }
    return $request;
}
add_filter('request', 'customfeed_request');

Solution 3

I spent a lot of time fixing this; I hope this helps someone.

The scenario: when Permalinks is off, I can access the RSS Feed url "/?feed=rss2" without error, but enabling the Permalinks the above returns the feed content and after this, an 404 error code. It is possible see the error code response under network browser inspection tools, like "Web Developer" plugin of Chrome.

Well, the feed client does not understand this error code and raises an exception, breaking the consumption page.

I traced the problem to the WP Super Cache. I think the cache does not generate the feed response content, but it tries to get the cache file and it don´t exist, resulting in error 404.

The simple solution, disable feed cache in "Advanced" topic of the "WP Super Cache Settings", checking "Feeds (is_feed)" options and save.

Perhaps your issue is in WP Super Cache.

Share:
11,882
user786731
Author by

user786731

Updated on June 05, 2022

Comments

  • user786731
    user786731 almost 2 years

    We have an RSS feed (or we should have) via wordpress but it is just giving using a 404 Page Not Found on load - http://www.warrenaccess.co.uk/feed/rss2

    We have tried changing back to default theme and deactivating all plugins to see if we could find an issue but it still didn't work.

    Does anyone have any idea what could be causing this?