WordPress Tip: Force All Feeds to Use Atom Atomatically
June 5th, 2008 • Code / Site • Comments?
While migrating my site to WordPress, I got annoyed that WordPress uses RSS feeds by default with no way to change to Atom. Not that there’s a big difference or anything, but if you’re anal-retentive like me and want WordPress to use Atom but still have pretty feed URLs (http://nanovivid.com/feed/ instead of http://nanovivid.com/feed/?feed=atom), you can do it with one .htaccess RewriteRule:
RewriteRule (.*)/feed/?$ $1?feed=atom [L]
This simply takes any URL ending in /feed and invisibly appends ?feed=atom to it. Instant Atom feeds for everything!Î
♫ Gotye - Heart's A Mess (Lull's Radio Edit)