Students Tutorial – FeedBurner for WordPress with Apache2 Redirect

So yesterday we showed students and new users how to setup WordPress to redirect its feed to Google’s FeedBurner with Nginx support. This post tells the same story but uses Apache2 to perform the redirect instead of Nginx.

My post from yesterday all started after some students asked about redirecting WordPress feeds to FeedBurner.

FeedBurner isn’t the best RSS feed management service, but it gets the job done. If you’re new to managing WordPress and you want to create a subscriber form so your user can subscribe and receive notifications when new posts are published, then you should first look at FeedBurner.

Other webmasters will disagree with this. They’d recommend FeedBurner alternatives.. and provide Aweber and Mail Chimp as options. I personally am using FeedBurner for my WordPress feeds. FeedBurner helps format WordPress feeds in readable formats that can easily be digested.

One reason I don’t direct new users and students at other feed management services is the cost associated with them. They are not cheap and most blogger just want a simple service to allow their subscribers to receive notifications when new posts are published. That simple! This post is a case to use FeedBurner for your WordPress blogs.

To view our previous post from yesterday on using FeedBurner for WordPress with Nginx support, please see the  link below:

Students Tutorial – FeedBurner for WordPress with Nginx Redirect Support

 

Step 1: Redirecting WordPress feeds to FeedBurner with Apache2 support

So our previous post showed you how it’s done with Nginx support. This shows you how it’s done with Apache2 support. We assume you have a functioning WordPress website supported by Apache2 web server. If not, read the post below to install WordPress with Apache2 on Ubuntu.

To learn how to install WordPress with Apache2 support, read the post below.

Installing WordPress 4.7 on Ubuntu 16.10 Server

 

Once Apache2 and WordPress are configured and functioning properly, create a .htaccess in Apache2 root directory where WordPress is installed if that file isn’t already created. So where ever your WordPress is installed, open the .htaccess and add the highlighted code in it and save your changes.

 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^index\.xml$ http://feeds.feedburner.com/siteforstudents [R,L]

Save your content and reload Apache2 webserver.

After this change, everytime a request for your feed is sent, Apache2 redirects the request to FeedBurner where the feed is formatted properly and your bandwidth is saved. This is how its’ done with Apache2.

Enjoy!