FeedBurner redirection

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
stain
Regular
Posts: 10
Joined: Tue Jun 07, 2005 7:11 pm
Contact:

FeedBurner redirection

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: FeedBurner redirection

Post by garvinhicking »

Hi!

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

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stain
Regular
Posts: 10
Joined: Tue Jun 07, 2005 7:11 pm
Contact:

Post by stain »

that's great, well done! and thank you.

bye, alberto.
stain
Regular
Posts: 10
Joined: Tue Jun 07, 2005 7:11 pm
Contact:

Post 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? :-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stain
Regular
Posts: 10
Joined: Tue Jun 07, 2005 7:11 pm
Contact:

another problem

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: another problem

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stain
Regular
Posts: 10
Joined: Tue Jun 07, 2005 7:11 pm
Contact:

Post by stain »

yes, thank you garvin, now it works.

bye, alberto.
Post Reply