Pixelpost e Feedburner

Lo avevo scritto ieri e oggi ho trovato una soluzione per far gestire il feed di pixelpost a feedburner lasciando invariato il link al feed originale.

Ho scritto un post sul forum pixelpost in inglese e per il momento lo copio/incollo qui…stasera non ho voglia di tradurlo:

I’m using pixelpost* here: www.walter.bz/photoblog.
*Pixelpost version 1.5 running on Apache , Php version 4.3.4.
I have two others blog and I’ve started using feedburner.
I wanted to “feedburn” my photoblog too, but without changing the original feed .
I’ve found a working solution:

1) I’ve duplicated the index.php page and renamed feed.php:

2) I’ve created a feedburner feed with this feed:

3) I’ve added these lines of codes in index.php after the first php tag

// checks if a rss or atom feed is asked
if(isset($_GET[‘x’])&&$_GET[‘x’] == “rss” OR $_GET[‘x’] == “atom”){
// redirects to feedburner link with a 307 message
header(“Location: http://feeds.feedburner.com/waltersphotoblog”);
header(“HTTP/1.1 307 Temporary Redirect”);
//exit page

=== piccolo spazio pubblicità ===

=== piccolo spazio pubblicità ===


In this way people who have bookmarked my old feed does not need to change the feed address. And now my feed is handled by feedburner.

If you click my standard pixelpost feed you will be redirected to the feedburner feed:


I’ve tried also with rewriterule conditions of apache but I’ve found that it does not seems to work with anything else that is after the ? sign. The pixelpost feed is after that sign.

It seems to work fine.
I’ve updated my bookmark at photoblogs.org and it is ok.
Tested with various browser and feed readers and also ok.

The file duplication is necessary due to the fact that using the original feed will cause a loop in feedburner. Perhaps adding a feedburner header detect in the conditions would be a cleaner solution.

Un commento su “Pixelpost e Feedburner”

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.