How to use FeedBurner with WordPress without .htaccess file
What is FeedBurner?
For those who don't know FeedBurner yet – continue to services description. Shortly – you get statistics and some aditional services for your RSS feed for free.
How to use it with WordPress?
If you use .htaccess file on your web – continue to WordPress FeedBurner Plugin.
The other people (including me) who are not allowed to use .htaccess files by their webhosting company. (So we have to have index.php in the permalink structure of our WordPress powered website.) must employ simple hack to achieve the same result.
Step by step
- Register at FeedBurner and when they ask you about your feed address use this:
http://addressofyourweb/index.php?feed=rss2
e.g.http://fredfred.net/skriker/index.php?feed=rss2
- Now the hack comes. Open
wp-feed.php
in the root directory of your site and edit it according to this example:
<?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/skriker/");
exit;
}
//end of the added code
where you replace http://feeds.feedburner.com/skriker/ with the address that you've got from the FeedBurner.
- All feeds from the default RSS address generated by WordPress (http://yourweb/index.php/feed/ e.g. http://fredfred.net/skriker/index.php/feed/) are redirected to the FeedBurner but your readers don't notice any change.
Bohužel, komentáře nejsou nyní povoleny.
NetAndif :: Panorama Test 2 17. 12. 2005 / 11.22
[…] Panorama-Plugin: http://fredfred.net/skriker/index.php/category/wordpress/ 17.12.05 @ 10:22 | […]
NetAndif :: Panorama-Test 3 17. 12. 2005 / 11.27
[…] Panorama-Plugin: http://fredfred.net/skriker/index.php/category/wordpress/ 17.12.05 @ 10:26 | […]
Gary Slinger 12. 1. 2006 / 22.02
Do you have a version of the above that works if the permalink structure of WordPress is set to other than the default, i.e. to date and name based?
Gary
malyfred 13. 1. 2006 / 19.16
Gary Slinger:: Do everything as suggested and offer this address to your visitors:
http: //yourweb/index.php?feed=feed
They’ll be redirected to the Feedburner. That’s 100% safe way.
But I think that my recipe should work with any permalink structure, anyway.
Greg 13. 1. 2006 / 21.18
Hey Malyfred,
Thanks for this great script. It doubled my feedburner readership. I only have one problem left though.
I used to use the standard wordpress permalinks, and obtained a lot of readers through this at http://www.diylive.net/?feed=rss2
I now switched my permalinks, and obtained a lot of readers through http://www.diylive.net/index.php/feed
I tried your script, and all of my readers through the second link go to my feedburner link, but my original readers can still access my wordpress generated rss through http://www.diylive.net/?feed=rss2
What can I do to ensure that both go there? Thanks
malyfred 13. 1. 2006 / 23.23
Greg:: hmmm, then you can do something like this – change:
if ($feed == '' || $feed == 'feed')
to
if ($feed == '' || $feed == 'feed' || $feed == 'feedburner')
and this:
if( $wp_query->query =='feed=feed' )
to
if( $wp_query->query =='feed=feed' || $feed == 'rss2')
Then set in Feedburner http://www.diylive.net/?feed=feedburner as the address of your feed.
Fringe 2. 2. 2006 / 10.46
Thanks for this hack.
I used it for my blog and it does work.
But I think There is some issue connected to
the in the comments template.
I see a lot of 404 error with this link
Any hint?
TreeFrog 22. 2. 2006 / 5.39
Terrific Blog you have. Peace Out.
TreeFrog
JiggyWittit 6. 3. 2006 / 11.33
Kewl blog you got goin on up here.
Peace, JiggyWittit
Nudecybot 21. 3. 2006 / 21.56
When you say “edit it according to this example” do you mean REPLACE the code indicated or ADD to that existing code within the curly brackets?
Nudecybot 21. 3. 2006 / 22.02
Oh I get it, I just need to append that code to the section you indicate. Many thanks!
elwyndfw 10. 4. 2006 / 3.46
I’ve been messing with this suggestion for a while, and can’t seem to get it to work. It works when I modify it locally, however, I get an attempted redirect and a 500 internal server error. I’m using the latest version of wordpress…
Any ideas?
Ryan Wagner 22. 6. 2006 / 1.56
I tried to do this and I got an error as well. It gave a link to where the page had moved and said there was a 500 error. This would have been perfect, too!
Thanks for trying.
-Ryan
Felipe 26. 1. 2007 / 10.46
thanks for the tip…
it worked just fine to me =)
Dreamer's Blog 14. 5. 2007 / 23.41
Feedburner service and plugin…
Now I change to use FeedBurner Feed service.
Subscribe in a reader
You can click the button above to subscribe my Feed. The feed is always on the right side and bottom.
Feedburner is so popular. I don’t want to write again.
You can check the list…
sopitikoj 8. 9. 2007 / 5.02
Hi
I really appreciated and say thank you for Keep up the great work online
G’night
Michael 27. 3. 2008 / 13.06
I’ve just spent too long trying to get the feedsmith thing to work – no joy. But cheers for this hack – am off to try it and see how I get on. TY for the help.
Web 2.0 & Usability Blog 15. 4. 2008 / 16.52
I love using Feedburner, why does it get such a tough time?
Vandit 2. 5. 2008 / 9.31
Hello,
I used feedburner plugin. But let me know if i want feed comment for Post 1 and Post 2.
Then also feedburner works?
E.g.
1)
I have created feeds in feedBurner for Posts and comments below
http://feeds.feedburner.com/NationalArtsStrategies
2) Installed Plugin and add above links.
3) Now when i clicked on rss link for any post in wordpress it displays same feed for all the posts.
it should display comments based on Posts only.
for Feeding the post also … if i clicked on any category feed it will show me the same result for any category?
Is that possible to pass cat id or page id to feedburner link to diplay the comments for individual post and posts for the individual category
Kaydee 19. 5. 2008 / 5.42
Dude your tips really work. Finally! I was having trouble getting feedburner to see my feeds :)
hekimboard 2. 7. 2008 / 8.12
thank yusufe ..hekimboard is very good
TPU #7 - Feedburner: Why and How You Should Use It | Podcast Secret Library 21. 12. 2008 / 9.28
[…] Forwarding your feed without an .htaccess file […]
Alarm Sistemleri 24. 2. 2009 / 15.59
thanks.
Albatol Network 21. 7. 2009 / 11.53
Thanks for the article.. nice tips and solved the feed problem
Redirect all feeds to FeedBurner with .htaccess 13. 9. 2009 / 2.20
[…] 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 […]
IT CAREER 9. 11. 2009 / 8.15
Dude your tips really work. Finally! I was having trouble getting feedburner to see my feeds :)
Rapport de Stage 23. 1. 2010 / 12.49
Hello
Your hack doesn’t work for me blog. The feed URL is http://rapport.eric.free.fr/index.php/feed and http://rapport.eric.free.fr/index.php?feed=feed redirect to http://rapport.eric.free.fr/index.php/feed.
And when I use icon on adress bar,I have http://rapport.eric.free.fr/index.php/feed…
photographes mariage portrait à Paris 27. 3. 2010 / 7.31
Thanks for sharing such a good information,
celebrity fuck you 24. 8. 2010 / 20.39
Sign: zdbrw Hello!!! xsgvr and 1425mamvuysudz and 4129 : I love your site. :) Love design!!! I just came across your blog and wanted to say that Ive really enjoyed browsing your blog posts.
prezervatif 6. 9. 2010 / 12.00
Thanks for sharing, good info.
Hans Meiser 19. 9. 2010 / 15.17
There is obviously a lot to know about this. I think you made some good points in Features also.
Keep working ,great job!