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.
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.
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.
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.