Site Overlay

Redirect WordPress Feeds To FeedBurner Using Action Hook

Redirect WordPress Feeds To FeedBurner using Action Hook:
You can use this simple snippet in your function.php to redirect your WordPress feeds to Feedburner. If you try to go to, you will be redirected to FeedBurner’s feeds for Sakin Shrestha.

Just open funtion.php file which is located in your theme directory. You can simply add the following snippet in function.php to redirect your WordPress Feed to Feedburner.

//Redirect WordPress Feeds To FeedBurner
add_action('template_redirect', 'ci_rss_redirect');
function ci_rss_redirect() {
if ( is_feed() && !preg_match('/feedburner|feedvalidator/i', $_SERVER['HTTP_USER_AGENT'])){
header('HTTP/1.1 302 Temporary Redirect');

In the above code you just need to replace with the FeedBurner URL.

There are other methods as well. For this you can Read More

Published By:

Author: sakinshrestha

Hello. My name is Sakin Shrestha, and I am a technology entrepreneur from Nepal. I am passionate about helping this sector grow, for many reasons. The technology sector creates jobs for many young Nepalis who would otherwise migrate to foreign countries. It lets Nepali professionals develop skills for a fast-changing global workplace, and compete at a high level with anyone, anywhere in the world. If it grows, it will provide a viable career option for many young Nepalis, and help us reap the benefits of a global economy.