Howto: redirect feeds to feedburner

However, this has been done before, but if you have ads on your feedburner account, and you try import these to facebook – facebook silently removes the ads and then you have a empty white space area = annoying (for me)

Add the following to your .htaccess

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteCond %{HTTP_USER_AGENT} !FacebookFeedFinder    [NC]
RewriteCond %{HTTP_USER_AGENT} !FacebookFeedParser    [NC]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/YourFBid [R=302,NC,L]
</IfModule>

This will redirect all requests to the relevant Feedburner ID, except if the user agent is any of the above – this can be modified to suit your own needs

Related posts

Share this post


Leave a Reply