Setting up RSS feed redirection to FeedBurner using Nginx is a straightforward process that can help you track subscriber statistics and enhance your blog’s reach. This configuration redirects all feed requests to your FeedBurner account while allowing FeedBurner itself to access your original feed. In this short guide, I’ll show you how to implement RSS Feed Redirection to FeedBurner Using Nginx.
The core of the RSS feed redirection is a simple Nginx configuration that checks the user agent and redirects accordingly. Here’s how to set it up:
root@server:/etc/nginx/sites-enabled# vi blackmoreops.com
if ($http_user_agent !~ FeedBurner) { rewrite ^/feed/ http://feeds.feedburner.com/bmofeed last; }
root@server:/etc/nginx/sites-enabled# nginx -t
root@server:/etc/nginx/sites-enabled# service nginx restart
You can also store the redirection rule in a separate config file and include it in your server blocks:
root@ubuntu14-upcl01:~# cat /var/www/blackmoreops.com/conf/nginx/rss_redirect.conf if ($http_user_agent !~ FeedBurner) { rewrite ^/feed/ http://feeds.feedburner.com/bmofeed last; }
root@ubuntu14-upcl01:~# chown -R www-data:www-data /var/www/blackmoreops.com/conf/nginx/rss_redirect.conf
root@ubuntu14-upcl01:~# nginx -t root@ubuntu14-upcl01:~# service nginx restart
Setting up RSS feed redirection to FeedBurner with Nginx is an effective way to manage your blog’s feed distribution. This configuration ensures all feed requests are sent to FeedBurner while allowing FeedBurner itself to access your original RSS feed. With this redirection in place, you can take advantage of FeedBurner’s analytics and subscriber management features to better understand your audience.