<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mitch&#039;s meanderings&#187; WordPress</title>
	<atom:link href="http://mitchcontla.com/category/tech/blog-stuff/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://mitchcontla.com</link>
	<description>life, technology, running; links, photos, and videos</description>
	<lastBuildDate>Tue, 18 Oct 2011 19:32:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Linkto: Rushi&#8217;s Weblog Client Review</title>
		<link>http://mitchcontla.com/2006/04/18/linkto-rushis-weblog-client-review/</link>
		<comments>http://mitchcontla.com/2006/04/18/linkto-rushis-weblog-client-review/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 00:46:25 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Blog Stuff]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[MovableType]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog-editors]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[weblog-clients]]></category>

		<guid isPermaLink="false">http://mitch.contla.net/2006/04/18/linkto-rushis-weblog-client-review/</guid>
		<description><![CDATA[Rushi quickly reviews a couple of weblog clients, or &#8220;blog editors&#8221;.]]></description>
			<content:encoded><![CDATA[<p><a href="http://rushi.wordpress.com/2006/04/17/blog-editors/trackback/">Rushi quickly reviews</a> a couple of weblog clients, or &#8220;blog editors&#8221;.</p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2006/04/18/linkto-rushis-weblog-client-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back Up del.icio.us Bookmarks</title>
		<link>http://mitchcontla.com/2006/04/11/back-up-delicious-bookmarks/</link>
		<comments>http://mitchcontla.com/2006/04/11/back-up-delicious-bookmarks/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 23:00:41 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Blog Stuff]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[delicious]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitch.contla.net/2006/04/11/back-up-delicious-bookmarks/</guid>
		<description><![CDATA[Lifehacker shows you how to back up del.icio.us bookmarks on your blog. As the article points out, aside from backups, there are other benefits to doing this: It also kills two birds with one stone: participate in the del.icio.us community AND update your blog daily with one del.icio.us post. This is a &#8220;no-hassle&#8221; solution done [...]]]></description>
			<content:encoded><![CDATA[<p>Lifehacker shows you <a href="http://www.lifehacker.com/software/delicious/how-to-back-up-delicious-bookmarks-on-your-blog-159861.php">how to back up del.icio.us bookmarks on your blog</a>. As the article points out, aside from backups, there are other benefits to doing this:</p>

<blockquote><p>It also kills two birds with one stone: participate in the del.icio.us community <span class="caps">AND </span>update your blog daily with one del.icio.us post.</p></blockquote>

<p>This is a &#8220;no-hassle&#8221; solution done completely through your <a href="http://del.icio.us">del.icio.us</a> account. I tried this initially on this blog, but later switched to <a href="http://nozell.com/blog/archives/2005/01/30/updated-yet-another-daily-delicious-hack/">yadd</a> for a more flexible solution. I made some minor modifications to meet my needs, including a change to the post title, and the automatic creation of tag hyperlinks.</p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2006/04/11/back-up-delicious-bookmarks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting WordPress Feeds to FeedBurner</title>
		<link>http://mitchcontla.com/2006/03/22/redirecting-wordpress-feeds-to-feedburner/</link>
		<comments>http://mitchcontla.com/2006/03/22/redirecting-wordpress-feeds-to-feedburner/#comments</comments>
		<pubDate>Wed, 22 Mar 2006 18:59:27 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Blog Stuff]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://mitch.contla.net/2006/03/22/redirecting-wordpress-feeds-to-feedburner/</guid>
		<description><![CDATA[If you want to simplify delivery, management, and analysis of your site&#8217;s feeds, FeedBurner is a great solution. This page will give you a quick summary of what FeedBurner is about. One of my favorite features (complete list of features) is SmartFeed&#8482;, an option that provides a subscriber-aware version of your feed to an aggregator, [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to simplify delivery, management, and analysis of your site&#8217;s feeds, <a href="http://www.feedburner.com">FeedBurner</a> is a great solution. This page will give you a quick summary of <a href="http://www.feedburner.com/fb/a/about">what FeedBurner is about</a>. One of my favorite features (complete list of <a href="http://www.feedburner.com/fb/a/publishers">features</a>) is <a href="http://www.burningdoor.com/feedburner/archives/000520.html">SmartFeed&#8482;</a>, an option that provides a <em>subscriber-aware</em> version of your feed to an aggregator, regardless of the feed format you are currently publishing. That means that if you serve an Atom feed, but a subscriber&#8217;s reader doesn&#8217;t support Atom, SmartFeed&#8482; serves up your feed as <acronym title="Real Simple Syndication">RSS</acronym>, or some other format on-the-fly! Burning a feed is simple, the FeedBurner site walks you through the process. Add a nice little button to your site, and you are done&#8230; almost.<br />
<span id="more-20"></span></p>

<p>Here&#8217;s the catch. Most content management systems like <a href="http://www.wordpress.org">WordPress</a> generate several feeds in a variety of flavors, each linked to your site via a <code>&amp;lt;link&amp;gt;</code> element like this:</p>


<pre>
<code class=&quot;example&quot;>&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS 2.0&quot; 
    href=&quot;http://www.example.com/feed/&quot; /&gt;
&lt;link rel=&quot;alternate&quot; type=&quot;text/xml&quot; title=&quot;RSS .92&quot; 
    href=&quot;http://www.example.com/feed/rss/&quot; /&gt;
&lt;link rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; title=&quot;Atom 0.3&quot; 
    href=&quot;http://www.example.com/feed/atom/&quot; /&gt;
</code></pre>


<p>Every newsreader that uses auto-discovery to subscribe to your feed, gets the <acronym title="Uniform Resource Locator">URL</acronym> for your feed from these <code>&amp;lt;link&amp;gt;</code> elements, completely ignoring the cute little FeedBurner button you proudly display on your page.</p>

<p>Assuming the FeedBurner <span class="caps">URL </span>to your new feed is, &#8220;mywildfeed&#8221;, you could simply change each element to look something like this:</p>


<pre>
<code class=&quot;example&quot;>&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS 2.0&quot; 
    href=&quot;http://feeds.feedburner.com/mywildfeed&quot; /&gt;
&lt;link rel=&quot;alternate&quot; type=&quot;text/xml&quot; title=&quot;RSS .92&quot; 
    href=&quot;http://feeds.feedburner.com/mywildfeed&quot; /&gt;
&lt;link rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; title=&quot;Atom 0.3&quot; 
    href=&quot;http://feeds.feedburner.com/mywildfeed&quot; /&gt;
</code></pre>


<p>But changing <code>&amp;lt;link&amp;gt;</code> elements has a downside:<br />
# An upgrade to your <acronym title="Content Management System">CMS</acronym> could overwrite your template reverting the <code>href</code> attribute to it&#8217;s previous value<br />
# If you decide to stop using FeedBurner, you could have a large subscriber base that would need to re-subscribe using a new <span class="caps">URL.</span></p>

<p>You could create a new feed for FeedBurner to consume (not exposed in a <code>&amp;lt;link&amp;gt;</code> element), and use an Apache redirect to point request for your old feeds to your new FeedBurner feed as outlined in this <a href="http://forums.feedburner.com/viewtopic.php?t=17">post</a>, but you are subject to the same disadvantages as the previous example.</p>

<h3>Solution</h3>

<p>To avoid some of the faults with the methods listed above, I choose to use Apache <code>mod_rewrite</code> directives to redirect requests for any feeds straight to FeedBurner. A couple of entries in <code>.htaccess</code> are all you need<sup class="footnote"><a href="#fn1">1</a></sup>:</p>


<pre>
<code class=&quot;example&quot;># FeedBurner Redirect
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} !^FeedBurner.? [NC]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/? 

http://feeds.feedburner.com/mywildfeed[R,L]</code></pre>

<p>If you are playing along at home, we&#8217;ll look at the important entries and explain what&#8217;s going on.</p>

<p>First we use <code>RewriteCond</code> to make sure that the <a href="http://www.answers.com/user%20agent">user agent</a> requesting the feed is <strong>not</strong> the FeedBurner bot<sup class="footnote"><a href="#fn2">2</a></sup>. This is significant, because if it is FeedBurner, we <strong>do not</strong> want to redirect, or we effectively create a circumstance where the service consumes itself (ugly).</p>


<pre><code class=&quot;example&quot;>RewriteCond %{HTTP_USER_AGENT} !^FeedBurner.? [NC]</code></pre>


<p>Now, and only if the condition above is true, the <code>RewriteRule</code> that does the real work:</p>


<pre>
<code class=&quot;example&quot;>RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/? 

http://feeds.feedburner.com/mywildfeed[R,L]</code></pre>

<p>Without going into a long-winded tutorial on <a href="http://www.regular-expressions.info/">regular expressions</a>, this rule catches the request for any feed offered by WordPress, and redirects it to the FeedBurner <span class="caps">URL.</span></p>

<h3>Benefits</h3>

<p>There a several benefits to this solution, most notably:<br />
# It doesn&#8217;t matter how a reader is subscribed to a feed, they are quietly whisked away to the FeedBurner <span class="caps">URL </span>when ready to consume.<br />
# Since the regular expression in the <code>RewriteRule</code> catches all the ways feeds are available in typical <code>&amp;lt;link&amp;gt;</code> elements, you need not worry about changing your template.<br />
# To discontinue using FeedBurner, or change to a similar service, simply eliminate or modify the entries in the <code>.htaccess</code> file.</p>

<p>All of this adds up to a solution that is easy to maintain, and <em>never</em> results in a disruption to the subscriber base.</p>

<h3>References</h3>

<p><a href="http://www.burningdoor.com/feedburner/archives/000425.html">Inspiration</a> for this article was <a href="http://www.cre8d-design.com/blog/2006/01/26/are-you-funnelling-all-your-subscribers-through-feedburner/">found</a> in <a href="http://www.stopdesign.com/log/2005/04/20/feedburning.html">many</a> <a href="http://www.chaddickerson.com/blog/?p=37">places</a>. Here are some other articles you might want to read:<br />
* <a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">Apache Module <code>mod_rewrite</code></a><br />
* <a href="http://orderedlist.com/articles/wordpress-feedburner-plugin/">WordPress FeedBurner Plugin</a><br />
* <a href="http://www.symphonious.net/2005/09/30/why-redirecting-your-feed-isnt-such-a-great-idea/">Why Redirecting Your Feed Isn&#8217;t Such a Great Idea</a><br />
* <a href="http://www.burningdoor.com/feedburner/archives/001251.html">Ciao, FeedBurner</a></p>

<h4>Footnotes</h4>

<p class="footnote" id="fn1"><sup>1</sup> Keep in mind I use WordPress to power my blog, you may require slightly different syntax.</p>

<p class="footnote" id="fn2"><sup>2</sup> I know, the <code>RewriteCond</code> is actually parsed after the <code>RewriteRule</code>&#8230; I&#8217;m trying to keep it simple!</p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2006/03/22/redirecting-wordpress-feeds-to-feedburner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

