Important Update: We no longer recommend FeedBurner—it's a declining service plagued by bugs. Read our guide on why to avoid it and explore reliable alternatives.
In a recent tutorial, we shared plugins for setting up FeedBurner. For intermediate to advanced users, here's how to redirect WordPress RSS feeds to FeedBurner directly via your .htaccess file, leveraging Apache's mod_rewrite for efficient, lightweight performance.
Open your .htaccess file in the root directory (same folder as wp-config.php). Add this code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-])?/?$ https://feeds.feedburner.com/wpbeginner [R=302,NC,L]Pro tip: Replace https://feeds.feedburner.com/wpbeginner with your own FeedBurner URL to avoid sending traffic to ours. Test thoroughly on a staging site first, as .htaccess edits require caution.