Page 1 of 1

FeedBurner redirection

Posted: Fri Nov 03, 2006 1:29 pm
by stain
hi all

I did activate my s9y plugin to forse redirection to FeedBurner, and it works fine, since I get a 302 redirection on all my feeds to feedburner.

BUT, how can now feedburner get my feeds in they get redirected to feedburner? does it comes to an infinite loop?? or should I do any other trick?

thanks

bye, alberto.

Re: FeedBurner redirection

Posted: Fri Nov 03, 2006 1:59 pm
by garvinhicking
Hi!

The rss.php has a Feedburner exclusion, so feedburner itself will not get redirected. :-)

Best regards,
Garvin

Posted: Fri Nov 03, 2006 2:44 pm
by stain
that's great, well done! and thank you.

bye, alberto.

Posted: Fri Nov 03, 2006 2:51 pm
by stain
by the way, someone told me this behavior will take much bandwidth, since feedburner is not able to get etag and last modified informations... is it right? or... will you surprise me again? :-)

Posted: Fri Nov 03, 2006 2:55 pm
by garvinhicking
Hi!

What did that person tell exactly?

Usually, since Feedburner does not get redirected, it can perform usual Etag/Last-Modified operations.

Clients that get redirected to your Feedburner feed should submit their etag/LM date to the feedburner.com servers, which should handle that strings also just fine.

So even if there were bandwidth problems, they would more likely appear on feedburners servers, not on yours. However, if you direct people directly to your feedburner link, you will not get any rss feed requests on your page - and thus save some bandwidth (a few bytes per request) on your page :)

Best regards,
Garvin

another problem

Posted: Thu Nov 16, 2006 7:14 pm
by stain
of course, you were right. BUT I have another bug, right now.

it seems that all my feed went redirected, and that's good, but also my categories feed are redirected to the main feed on feedburner, which is not good. how about it?

take a look at my general feed and a category feed:

http://www.mucignat.com/blog/feeds/index.rss2
http://www.mucignat.com/blog/feeds/cate ... ojects.rss

bye, Alberto.

Re: another problem

Posted: Fri Nov 17, 2006 1:31 pm
by garvinhicking
Hi!

Hm, your rss.php should contain this:

Code: Select all

if ($_GET['type']  == 'content' &&
    !isset($_GET['category']) &&
    !isset($serendipity['GET']['tag']) &&
    $plugin->get_config('show_feedburner') === 'force' &&
    !preg_match('@FeedBurn@i', $_SERVER['HTTP_USER_AGENT']) &&
    !(serendipity_userLoggedIn() && isset($_GET['forceLocal']))
   ) {
    $url = 'http://feeds.feedburner.com/' . $plugin->get_config('fb_id');
    header('Location: ' . $url);
    exit;
}
So this should take actions that redirection is only done when no specific category is selected?!

Oh. I see this is only contained in 1.1 snapshots, so you'd need to upgrade or use that code until you upgrade.

HTH,
Garvin

Posted: Tue Nov 28, 2006 11:34 am
by stain
yes, thank you garvin, now it works.

bye, alberto.