<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: FeedBurner and lighttpd redirects</title>
    <link>http://www.robbyonrails.com/articles/2006/08/22/feedburner-and-lighttpd-redirects</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>FeedBurner and lighttpd redirects</title>
      <description>&lt;p&gt;I haven&amp;#8217;t been using feedburner to track counts of subscribers to my feed. I didn&amp;#8217;t want to tell everyone to switch their feed &lt;span class="caps"&gt;URL&lt;/span&gt;&amp;#8230; so I found this solution for handling this transition through Lighttpd.&lt;/p&gt;


	&lt;p&gt;First, make sure you are requiring the &lt;code&gt;mod_redirect&lt;/code&gt; module.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;server.modules              = ( "mod_rewrite", "mod_fastcgi", "mod_compress", "mod_redirect" )&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Then add the following&amp;#8230; to your lighty configuration.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
$HTTP["useragent"] !~ "FeedBurner" {
  url.redirect = (
    "/xml/rss/feed.xml" =&amp;gt; "http://feeds.feedburner.com/RobbyOnRails",  
    "/xml/rss20/feed.xml" =&amp;gt; "http://feeds.feedburner.com/RobbyOnRails",
    "/xml/atom/feed.xml" =&amp;gt; "http://feeds.feedburner.com/RobbyOnRails" 
  )
}
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Works like a charm!&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href="http://www.iamrice.org"&gt;Damien Tanner&lt;/a&gt; for putting me on &lt;a href="http://iamrice.org/articles/2006/03/30/migrating-typo-feeds-to-feedburner"&gt;the right path&lt;/a&gt;.&lt;/p&gt;
</description>
      <pubDate>Tue, 22 Aug 2006 15:28:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:b9f0c8a5-f9de-41d0-ab66-23f104cb6415</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2006/08/22/feedburner-and-lighttpd-redirects</link>
      <category>lighttpd</category>
      <category>feedburner</category>
      <category>typo</category>
      <category>blog</category>
    </item>
    <item>
      <title>"FeedBurner and lighttpd redirects" by Shane Vitarana</title>
      <description>&lt;p&gt;I answered my own question [here](&lt;a href="http://shanesbrain.net/articles/2006/08/27/feedburner-integration-in-typo" rel="nofollow"&gt;http://shanesbrain.net/articles/2006/08/27/feedburner-integration-in-typo&lt;/a&gt;).&lt;/p&gt;</description>
      <pubDate>Sun, 27 Aug 2006 19:14:42 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:016a6f38-f6fe-4621-961d-3abfd96c0c6b</guid>
      <link>http://www.robbyonrails.com/articles/2006/08/22/feedburner-and-lighttpd-redirects#comment-21878</link>
    </item>
    <item>
      <title>"FeedBurner and lighttpd redirects" by Shane Vitarana</title>
      <description>&lt;p&gt;Sweet.  I like the DRY approach Josh.  I wonder if there is something similar for the RedirectPermanent Apache directive.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Aug 2006 12:43:42 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:4a115f48-fa87-402c-bbcd-86eb295b65bc</guid>
      <link>http://www.robbyonrails.com/articles/2006/08/22/feedburner-and-lighttpd-redirects#comment-21876</link>
    </item>
    <item>
      <title>"FeedBurner and lighttpd redirects" by Josh Knowles</title>
      <description>&lt;p&gt;If you want to &amp;#8216;DRY&amp;#8217; this up a bit try the following:&lt;/p&gt;


	&lt;p&gt;url.redirect = (&amp;#8221;/xml/(atom|rss|rss20)/feed.xml&amp;#8221; =&amp;gt; &amp;#8220;&lt;a href="http://feeds.feedburner.com/RobbyOnRails" rel="nofollow"&gt;http://feeds.feedburner.com/RobbyOnRails&lt;/a&gt;&amp;#8221;)&lt;/p&gt;</description>
      <pubDate>Wed, 23 Aug 2006 20:20:33 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:12663274-7950-4994-911f-1c84322ff4d4</guid>
      <link>http://www.robbyonrails.com/articles/2006/08/22/feedburner-and-lighttpd-redirects#comment-21853</link>
    </item>
  </channel>
</rss>
