Read my latest article: Announcing RailsDeveloper (posted Wed, 01 Sep 2010 17:01:00 GMT)

FeedBurner and lighttpd redirects

Posted by Robby Russell Tue, 22 Aug 2006 20:28:00 GMT

28 comments Latest by vector conversion Tue, 31 Aug 2010 15:09:52 GMT

I haven’t been using feedburner to track counts of subscribers to my feed. I didn’t want to tell everyone to switch their feed URL… so I found this solution for handling this transition through Lighttpd.

First, make sure you are requiring the mod_redirect module.

server.modules              = ( "mod_rewrite", "mod_fastcgi", "mod_compress", "mod_redirect" )

Then add the following… to your lighty configuration.


$HTTP["useragent"] !~ "FeedBurner" {
  url.redirect = (
    "/xml/rss/feed.xml" => "http://feeds.feedburner.com/RobbyOnRails",  
    "/xml/rss20/feed.xml" => "http://feeds.feedburner.com/RobbyOnRails",
    "/xml/atom/feed.xml" => "http://feeds.feedburner.com/RobbyOnRails" 
  )
}

Works like a charm!

Thanks to Damien Tanner for putting me on the right path.

Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Leave a response

  1. Avatar
    Josh Knowles Thu, 24 Aug 2006 01:20:33 GMT

    If you want to ‘DRY’ this up a bit try the following:

    url.redirect = (”/xml/(atom|rss|rss20)/feed.xml” => “http://feeds.feedburner.com/RobbyOnRails”)

  2. Avatar
    Shane Vitarana Sun, 27 Aug 2006 17:43:42 GMT

    Sweet. I like the DRY approach Josh. I wonder if there is something similar for the RedirectPermanent Apache directive.

  3. Avatar
    Shane Vitarana Mon, 28 Aug 2006 00:14:42 GMT
  4. Avatar
    Paulfzb Mon, 13 Aug 2007 16:12:35 GMT

    http://adqrarefsbbdg.host.com desk3 [url=http://adqsarefsbbdg.host.com]desk4[/url] [link=http://adqaarefsbbdg.host.com]desk6[/link]

  5. Avatar
    Paulfzb Mon, 13 Aug 2007 16:13:42 GMT

    http://adqrarefsbbdg.host.com desk3 [url=http://adqsarefsbbdg.host.com]desk4[/url] [link=http://adqaarefsbbdg.host.com]desk6[/link]

  6. Avatar
    rin Wed, 10 Mar 2010 08:02:39 GMT
  7. Avatar
    ed hardy boots Thu, 18 Mar 2010 06:27:45 GMT
  8. Avatar
    ed hardy boots Thu, 18 Mar 2010 06:27:52 GMT
  9. Avatar
    laptop adapter factory Thu, 13 May 2010 07:00:05 GMT

    so I found this solution for handling this transition through Lighttpd.

  10. Avatar
    replicas watches replicas watches Fri, 28 May 2010 08:55:21 GMT

    dockerswatches tissot freereplicas watches pants

  11. Avatar
    nike dunk low premium Sat, 29 May 2010 01:07:22 GMT

    nike dunk low premium

  12. Avatar
    Adidas running shoes Wed, 09 Jun 2010 02:28:34 GMT

    yt

  13. Avatar
    bastian schweinsteiger world cup jersey Fri, 11 Jun 2010 01:30:06 GMT

    rty er

  14. Avatar
    supra vege blue black Sat, 12 Jun 2010 00:26:24 GMT

    iykt

  15. Avatar
    nike lebron Sat, 12 Jun 2010 00:27:00 GMT

    ter ter

  16. Avatar
    Chanel handbags Tue, 29 Jun 2010 00:32:53 GMT

    Every hermes bag is a section of art that is handcrafted appropriate from the time of acid the leather and even bond up the hermes wallets . With so abundant of account accustomed to one hermes constance you are abiding to get the best.

    Chanel handbags accept been about for absolutely some time and abide one of accepted styles of replica Chanel handbags . Out of all of the Chanel handbag that are accessible on the bazaar.

  17. Avatar
    Chanel handbags Tue, 29 Jun 2010 00:35:23 GMT

    Every hermes bag is a section of art that is handcrafted appropriate from the time of acid the leather and even bond up the hermes wallets . With so abundant of account accustomed to one hermes constance you are abiding to get the best.

    Chanel handbags accept been about for absolutely some time and abide one of accepted styles of replica Chanel handbags . Out of all of the Chanel handbag that are accessible on the bazaar.

  18. Avatar
    asadf Fri, 02 Jul 2010 07:28:41 GMT
  19. Avatar
    Louis Vuitton Wallets Mon, 19 Jul 2010 17:44:37 GMT

    Louis Vuitton Elise Wallet M6363K Louis Vuitton Elise Wallet Louis Vuitton Elise Wallet M6348J Louis Vuitton Elise Wallet Louis Vuitton Elise Wallet M63632 Louis Vuitton Elise Wallet Louis Vuitton Coin Purse M63412 Louis Vuitton Coin Purse Louis Vuitton Sarah Wallet M63742 Louis Vuitton Sarah Wallet Louis Vuitton Sarah Wallet M6516J Louis Vuitton Sarah Wallet Louis Vuitton Sarah Wallet M6374K Louis Vuitton Sarah Wallet Louis Vuitton Sarah Wallet M6374M Louis Vuitton Sarah Wallet Louis Vuitton Tresor Wallet M63972 Louis Vuitton Tresor Wallet Louis Vuitton French Purse M6364K Louis Vuitton French Purse Louis Vuitton French Purse M63642 Louis Vuitton French Purse Louis Vuitton Marco Wallet M63652 Louis Vuitton Marco Wallet Louis Vuitton Pocket Organizer M63582 Louis Vuitton Pocket Organizer Louis Vuitton Pocket Organizer M6358J Louis Vuitton Pocket Organizer Louis Vuitton Pocket Organizer M6358K Louis Vuitton Pocket Organizer Louis Vuitton Brazza Wallet M66542 Louis Vuitton Brazza Wallet Louis Vuitton Billfold M63312 Louis Vuitton Billfold

  20. Avatar
    chanel jewelry Fri, 30 Jul 2010 07:20:56 GMT

    r question louis vuitton key chains to you today: Do you

  21. Avatar
    logo designs Mon, 02 Aug 2010 07:44:19 GMT

    Sweet. I like the approach Josh SEC. I wonder if there is something similar to Apache RedirectPermanent Directive.

  22. Avatar
    Nieuwste films Thu, 05 Aug 2010 21:35:07 GMT

    Thanks for the code

  23. Avatar
    camera bag factory Mon, 09 Aug 2010 03:29:18 GMT

    urner to track counts of subscribers to my feed. I didn’t want to tell everyone to switch their feed URL… so I found this solution for handling this transition thro

  24. Sweet. I like the DRY approach Josh. I wonder if there is something similar for the RedirectPermanent Apache directive.

  25. Avatar
    Araba Oyunları Tue, 10 Aug 2010 00:17:28 GMT

    Sweet. I like the DRY approach Josh. I wonder if there is something similar for the RedirectPermanent Apache directive.

  26. Avatar
    online roulette Tue, 10 Aug 2010 12:41:48 GMT

    I am trying to use this in conjunction of RESTful services using WCF, which makes use of WebHttpBindings and WebServiceHost. Using TCP will allow for soap serialization, but I cant quite figure out why I cant make this work over HTTP. Any help would be greatly appreciated….

  27. Avatar
    <a href="http://www.china-bag-factory.com/" target="_blank">bag factory</a> Thu, 19 Aug 2010 14:58:45 GMT

    Thanks for you

  28. Avatar
    vector conversion Tue, 31 Aug 2010 15:09:52 GMT

    Now, I feel good, I started take up real income. vector conversion have never thought that there weren’t any need in big initial investment.Keep working, great job, I love it! digitizing software Thanks.Great post. I have been searching for this exact info for a while now. I will bookmark it in the public bookmarking sites to get you more traffic. stock designs Now lets see if I can do something productive with it.I wonder if there is something similar for the RedirectPermanent Apache directive.

Share your thoughts... (really...I want to hear them)

Comments