Recent Topics

1 Sep 01, 2006 04:45    

Your b2evolution version: 0.9.1
Your level of knowledge of Internet technologies: Advanced Knowledge
Link to your b2evolution blog: http://www.thejasonmurphyshow.com

PHP Version:
MySQL Version:

What actions led up to your current issue?
my own curious "what does this button do" type of thinking.

What have you tried to solve the issue?
Redirect the entire file. Doesn't work. Just loops.

Description and Message

Hello all,

I am using FeedBurner to host my RSS feeds. I have a lot of remaining traffic to my old feeds, so I was wondering about using rewrite rules to redirect that traffic to FeedBurner.

However, what I did without thinking about it was make a big loop. Feedburner was one of the agents accessing the files, and after I added the 302 redirect rules, it just started re-accessing itself over and over. Kinda funny. Kinda sucked.

So I'm wondering about modifying the actual rss.php, atom.php, and xmlrpc.php files by wrapping them in an IF statement, something like

IF ([agent] <> [Feadburners Agent Header]) {
header("Location: http://feeds.feedburner.com/JasonMurphy";);
}
ELSE {
(rest of file)
}

question is, what would I put in place of [agent] and [Feedburners Agent Header]? And would this really work or am I making it too simple?

(MODS feel free to move this to the hacks forum if more appropriate there)

2 Sep 01, 2006 17:33

The simplest solution would be to rename the rss feed files and point feedburner at the new names, then your redirect should work without loops ;)

¥

3 Sep 02, 2006 11:27

UPDATE: worked like a charm.


Form is loading...