Forward wordpress feeds to feedburner

I use wordpress to run this site, and wordpress creates its own rss feed. It actually does a good job of creating feeds, but their is only one problem. It does not keep track of how many feeds you have. I found a plugin for wordpress that will forward all of your feeds to feedburner. Feedburner is a site that handles all of your feed requests, and keeps data on how many people are subscribed, as well as how many people are clicking through to your site. This plugin works great, but it requires you to use Apache. Apache handles all permalinks through a .htaccess file. The plugin edits this file to make any feed requests to be forwarded to feedburner. My server does not run Apache. It runs IIS, which means that I can not use the .htaccess file to handle my permalinks. I have to have /index.php/ in my URL.
Basically, the plugin won’t work. I did some research and found a site, fredfred.net/striker, where I learned here how to edit my wp-feed.php file to forward to my feedburner address.
In order to do this his way, you simply first register with feedburner and point it to
http://www.diylive.net/index.php?feed=rss2 {Of course, instead of diylive.net, you would put the address of your feed.}
The next step is to open your wp-feed.php file. What this file does, is when a feed is called, it will forward the feed reader to the appropriate feed, ex. rss2, atom, rss, or rdf. I found this code from fredfred.
< ?php
if (empty($doing_rss)) {
$doing_rss = 1;
require(dirname(__FILE__) . '/wp-blog-header.php');
}
//this is the code for FeedBurner
if( $wp_query->query ==’feed=feed’ ){
header(”Location: http://feeds.feedburner.com/DiyLive/”);
exit;
}
//end of the added code
In this example, you add this code in the file to forward anybody accessing your feed through this address - www.diylive.net/index.php/feed - to your feedburner account at http://feeds.feedburner.com/DiyLive/ {again, you would change DiyLive to your own account}.
I found some bugs in this though. A lot of people were accessing my rss2 feed directly by typing in www.diylive.net/index.php/feed/rss2. This Would bypass the code, and still allow them to see my wordpress feed. I only forwarded about half of my readers to my feedburner account.
With fredfred’s help, I was able to redo the code to make it forward all of my feeds to feedburner, no matter how the specified it.
Now, I had to do some adjustments, First I will show you how to edit the code. For the original part that I added, you need to replace
if( $wp_query->query ==’feed=feed’ )
with
if( $wp_query->query ==’feed=feed’ || $feed == ‘rss2′ || $feed == ‘rss’ || $feed == ‘atom’ || $feed == ‘rdf’)
You would also need to change the line that says
if ($feed == ” || $feed == ‘feed’)
to
if ($feed == ” || $feed == ‘feed’ || $feed == ‘feedburner’)
The next important step is to go to feedburner, and change the original feed to http://www.diylive.net/?feed=feedburner. Now, all of the subscribers will be forwarded to feedburner, but feedburner can still access your wordpress code by stating tht feed=feedburner. Here is a screen shot to show how to set up your feedburner settings.

This is kind of confusing, so I decided to give you the entire code. You can download it here. Just save it as wp-feed.php, and replace your other file. You just want to make sure that you edit it, and where it says header(”Location: http://feeds.feedburner.com/DiyLive”); that you change it to your feedburner address.
254 Responses to “Forward wordpress feeds to feedburner”
Leave a Reply



[...] Una altra tasca de la TO DO list completada! Després d’uns quants dies barallant-me amb algun que altre plugin inútil (pel meu cas), fitxers del blog i feeds varis; al final he pogut redireccionar, seguint aquestes indicacions, tots els quals genera el Wordpress cap al que em vaig crear a FeedBurner. La qüestió residia en el fet que els meus permalinks tenen index.php al principi de la seva estructura, per tant la única solució era modificar el codi sense utilitzar cap plugin. Ja comencen a sortir estadístiques del nombre de lectors del blog, per la qual cosa he afegit el comptador al final del menú de l’esquerra, tot just després del link a les estadístiques de la web. Com es pot comprovar, les xifres no són gens espectaculars, però el meu objectiu tampoc és ser un blogger de Classe A
[...]
[...] At some point I also tried revising the wp-feeds.php file, as instructed here. That’s supposed to redirect people from your default WP feeds to your feedburner feed, but it only seemed to create an empty feed w/no content. [...]
nice article yes thanks so much guy
looks good !
Thank you for this article! Even though it does not explain how to set up multiple forwards (e.g. one for the entries and another for the comments), I was able to make the necessary adjustments myself, once I found out that $wp_query->query is ‘withcomments=1&feed=feed’ for the comments.
[...] If you have index.php in your permalink structure you have to use a hack. This hack only forwards part of the RSS feeds. To forward all of your feeds to feedburner use this hack. [...]
Ok, how did you get comments to work with feedburner? Do I need to make any chages to wp-feed.php file or just change the link in feedburner?
Thank you so much, Greq!
This article really help me alot!
I was new to wordpress and feedburner. and this article value’s like gold!
you rock, man!
nice article yes thanks so much, Guy!
Thanks so much for uploading your wp-feed file. Really helped with the confusion of how exactly I was supposed to redirect to feedburner my WP rss url. Thanks again!
I am glad that this has helped out so many people. I don’t worry about my comments, so I don’t really know how to answer that question.
It’s very beautifully.
It’s great !
Thank you so much, worked out pretty well for me!
Thanks so much. When I tried to update my original feed at Feedburner, I got the following error message: Error on LIne 1:the markup in the document proceeding the root element must be well-formed. Any ideas on what I should do? Thanks.
thank you site page very bice
Lisa, I was having the same problem with “Error on Line 1″ and found the problem.
In the wp-feed.php file that you downloaded the first line should not have a space after the opening bracket. It should say:
Oops that stripped out the code. Let me try again:
use
<?php
not
< ?php
Interesting site! Well done, good stuff. This will be my first time visiting. Cheers!
lortab http://codeine-best77.blogspot.com/ lortab
auf Wiedersehen!
I agree with your point. I think its a nice view to your topic.
Hey, I downloaded your wp-feed.php and also changed the
Thanks for the full article. You were right that it was confusing..
thanksssss youu veywwww
looks good !
Thanks a lot
Sevgi Ve Aşk Platformu SanaSevdam.Net
sanasevdam
sağol dostum thankss
Thanks
For a beloved thanking
thanksss
thanjsssssssssssssss
çok iyi yaw sağol a.q
Thank you so much, worked out pretty well for me!
Ok, how did you get comments to work with feedburner? Do I need to make any chages to wp-feed.php file or just change the link in feedburner?
Thanks for the full article. You were right that it was confusing. Appreciate the link to the entirity of it.
For a beloved thanking
Its Cool thanx
feed burner
For a beloved thanking
Its Cool thanx
Thanks for the full article. You were right that it was confusing. Appreciate the link to the entirity of it.
Hi, I visited your blog just now. Very nice. Thanks!
Best Articles Site
Thanks for the full article. good
Thanks for the full article. good
Thanks for the full article. man.
No one is here for help all want just money money and money.
Thanks for sharing
You were right that it was confusing. Appreciate the link to the entirity of it.
I’d prefer reading in my native language, because my knowledge of your languange is no so well. But it was interesting! Look for some my links:
Thanks…
Thanks it useful . codes is ok.
american presidents
american presidents
american presidents
thankss
Ok, how did you get comments to work with feedburner? Do I need to make any chages to wp-feed.php file or just change the link in feedburner?
Thanks
thank you
THANKS soo muchh
Mony is mony and all we need is mony
wow every one want mony mony and mony.
wow every one want mony mony and mony.
Thanks for the full article.
thanks for all
I visited your blog just now. thanks for article
Well done thanks your write
Thanks!
Nothing can stop me by posting these comments.
thanks dude!
Thanks very Done..
thanks very much
thanks
thanks very nice
thanks very good
thanks very much
Thank you so much.
thankss so much
Thans bro
thanks you
Thanks so much. When I tried to update my original feed at Feedburner, I got the following error message: Error on LIne 1:the markup in the document proceeding the root element must be well-formed. Any ideas on what I should do? Thanks.
thanks….
thanks…
thanks…..
dank u
thanxx
thanks…..
Thanks nice post
Thanks for the full article. You were right that it was confusing.
Appreciate the link to the entirity of it.
oyun
You were right that it was confusing.
Appreciate the link to the entirity of it.
Thanks for the full article.
mini juego
thanks….. s
Hello
I’m sure that it will bring out all the Nick/OLPC deluded fans with a string of venomous comments.
Thanks for a very thought provoking post.
Thank You Mf Hello
I’m sure that it
thanks mark ovens .
Thank you for your work.
Thank you so much.
thans
It’s very beautifully. thank you.
thansk
thanks
thanks so muchh
thanks see
Thank you so much
thnks
very good
thanks
thnks
thanks
good works
Thanks
Fokların katledilmesine hayır
thankss yourss veryf good
good article thanks
Toplist
Thanks…
great article
thankss so much
thank you.
thank you
Thanks
Thanks.. good
Sex Shop,Sex,Erotic Shop,Erotik Market,Seks Shop,Sexshop,Erotic Shop,Azdırıcı damla, Cinsel Ürünler,Cinsel Sağlık,erotik magaza,erotik
Sex Shop,Sex,Erotic Shop,Erotik Market,Seks Shop,Sexshop,Erotic Shop,Azdırıcı damla, Cinsel Ürünler,Cinsel Sağlık,erotik magaza,erotik
Thanks…..
Thanks for the full article. You were right that it was confusing.
Appreciate the link to the entirity of it.
nice article yes thanks so much, Guy!
very nice thanks…
Thanks for the full article. You were right that it was confusing.
Appreciate the link to the entirity of it.
thankss yours
#
Lisa, I was having the same problem with “Error on Line 1″ and found the problem.
In the wp-feed.php file that you downloaded the first line should not have a space after the opening bracket. It should say:
thanks
thank you so much. i was bookmarked this.
soo good this. thanks a lot.
Thank you for your time and effort.
good point ı like it thnx.
ver very nice blog site.I love this.
Successful website
ooooh good ideas web site
good article
very nice content
yemek tarifleri
thanks a lot.nice information
nice this.thank you so much
In order to do this his way, you simply first register with feedburner and point it to???
thankss yours veryff goodd
thanks for article
goood thanks.
good point ı like your post.
super temizlik urunleri
thanks…
thanks
thanks yourss toool maps
Süper oyunlar thanks
thanks
Nobody can stop me by posting these comments.
http://www.businesswebhostings.net
thanks you
Thank you man ! I tryed and implemented that on my site http://sexyuzivanje.com
good code but hard
good code and optimize,thanks
thanks
thankkkk
valla süpersiniz
iyi sitedir.
Thanks for your helpful script!
thanks
seks shop
sex shop
erotik shop
thanks
thank you very much
Thank you man
helal olsun kankama
Thanks For Information.
thanks dear.. good blog. great work. ):
Vavv burayida türkler sarmiş :))
Amma sazansınız yaws
sohbet siteme bekleriz
hosting web hosting irc hosting kiralık sunucular
kadınlara ÖZel site :9
very good themes thank you
adamlar sizi yüzünüze bizim girişleri kapaticaklar
tesekkur ediyorum
sexshop
süpermiş
thanks yourss vebsite
Nicel blog.
thanks..
thanks
good web
very nicee
thanks.
good
diyetle zayıflamak
thanksssssss
adminnnnnnnn thankssssssssssssssss
Nice to play and easy to win but hard to fight.
http://www.adnarticles.com
GOOD!!THANKS!
thanks for all
thanks..
So nice, thanks
Articles are always hard to search but here are some options.
http://www.eshariq.com
thanks
thanx for this article
thanxcxx
thanks my friend..
thanks \o/
thanx for this post
tavla indir
siirtliler
siirtlilerin bulusma nokyasi
thank you
modifiyeli arabalar
thank you..
Just chill on and enhance your libido for sure success.
http://www.libido-enhancers.com
Chill to mill and fill the drill of success with vigrx plus -
http://www.vigrx-plus.net
Nine plus nine all fine.
http://nasrullahmardani.com
10x
thanks..
thnaks
nice thanks
Sagol Koçum tşk…
i read your article..the things you have written sound very sincere and nice topics i am
looking forward to its continuation.
Makele ve yazilarinizi okudum. Aydinlattiginiz icin tesekkur ederim
Iyi Calismalar
i read your article..the things you have written sound very sincere and nice topics i am looking forward to its continuation.
süper yazılar hoca
sexshop the things
sexshop my deneme
Please enter your comment here
thank you so much
Ok, how did you get comments to work with feedburner? Do I need to make any chages to wp-feed.php file or just change the link in feedburner?
I am Very thank full the owner of this blog. Becouse of this blog is very imformative for me.. And I ask u some thiing You make more this type blog where we can get more knowledge. http://www.penisenlargementz.com and any one tell me how can I find this type blog.
Gazete oku,Gazete, Gazete sitesi, Gazete siteleri, Gazete resimleri, Gazeteler, Gazete Oku,Gazeteleri oku,Köşe Yazıları,Gazete Haberleri,Yerel Gazeteler,Köşe Yazıları Oku,
bulusma nokyasi
tenkssss
tenksss
ruya tabirleri
ruya tabirleri ruya tabiri ruya yorumlari
zayıflama
zayıflama hayde
thanks
Ok, how did you get comments to work with feedburner? Do I need to make any chages to wp-feed.php file or just change the link in feedburner?
thanks.
acikogretim aof fakultesi hakkinda detayli bilgi veren rehber.
turkey in residence
thank you
Do I need to make any chages to wp-feed.php file or just change the link in feedburner?
thanks.
sdkasdşkdjasdhhjkdgsdasdbjh
sdajkdoasdshdosdasndhşuıasdsaddsfsdfsd
thank you baby
istanbul turkiyenin en guzel sehridir.
THANK YOU SİTE ADİMN
Very beautiful post, thank you man
Thank you my bb
thankss super site..
Very beautiful post, thank you man Very beautiful post, thank you man
thanks admin
travesti