WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: FeedBurner FeedSmith] Not working with Rss2 (5 posts)

  1. Michael Fields
    Themer
    Posted 6 years ago #

    Hi I just set up a feedburner feed for the first time. I installed the "FeedBurner FeedSmith" plugin and it seems to work with my Atom feed, but not the RSS 2 feed. Has anyone else had this problem, or know what might be happening? The links are in my footer.

    Blog: http://mfields.org/

    Code in footer.php:

    <h2>Syndicate</h2>
    <ul>
    	<li><a class="rss link" href="<?php bloginfo('rss2_url') ?>">RSS 2</a></li>
    	<li><a class="rss link" href="<?php bloginfo('atom_url') ?>">ATOM</a></li>
    </ul>

    My .htaccess file has normal Premalink code in it - nothing custom:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    If anyone knows what might be the issue, please let me know.
    Thanks!

  2. Michael Fields
    Themer
    Posted 6 years ago #

    Just opened up the plugin to see if I could find the code that might be causing my problem. There seems to be a function ol_check_url() that uses a case statement that switches on the feed document...

    function ol_check_url() {
    	global $feedburner_settings;
    	switch (basename($_SERVER['PHP_SELF'])) {
    		case 'wp-rss.php':
    		case 'wp-rss2.php':
    		case 'wp-atom.php':
    		case 'wp-rdf.php':
    			if (trim($feedburner_settings['feedburner_url']) != '') {
    				if (function_exists('status_header')) status_header( 302 );
    				header("Location:" . trim($feedburner_settings['feedburner_url']));
    				header("HTTP/1.1 302 Temporary Redirect");
    				exit();
    			}
    			break;
    		case 'wp-commentsrss2.php':
    			if (trim($feedburner_settings['feedburner_comments_url']) != '') {
    				if (function_exists('status_header')) status_header( 302 );
    				header("Location:" . trim($feedburner_settings['feedburner_comments_url']));
    				header("HTTP/1.1 302 Temporary Redirect");
    				exit();
    			}
    			break;
    	}
    }

    This function is applied at the init hook:

    add_action('init','ol_check_url');

    I do have permalinks set up on my blog:

    http://example.com/2008/04/19/sample-post/

    Upon reading the function above, I decided to try this link:

    http://mfields.org/wp-rss2.php

    ...which will redirect to feedburner

    while:

    http://mfields.org/feed/

    Still takes me to my WordPress rss feed.

    This is peculiar, has anyone experienced any feed related permalink weirdness with 2.5? I don't really play with my feeds alot, but I've heard the name "Feedburner" about a gizillion times and decided to look into it.... and I kinda like it.

    I know that I could just hardcode the links to feedburner, but I would rather try to gain an understanding of why

    <?php bloginfo('rss2_url') ?>

    fails, while

    <?php bloginfo('atom_url') ?>

    redirects.

  3. jtan325
    Member
    Posted 5 years ago #

    hey, ran across this exact problem. ATOM feed was redirecting properly, but RSS was not. posting a new post after installing the feedsmith plugin did the trick for me.

  4. atalekar
    Member
    Posted 5 years ago #

    mfields - let me know if this works for you. I don't want to hijack you thread but I am having exact same issue, only that my original wordpress feed is missing - it gives me page not found message. php file redirects like you, works for me.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    As far as I can tell, the FeedSmith plugin is working fine. I use it on many sites, it works on all URLs that it should work on.

    Note that redirects are cached by browsers, but so are *lack* of redirects. So in order for you to notice any difference after making a change, you need to restart your browser.

Topic Closed

This topic has been closed to new replies.

About this Topic