How Redirect WordPress Feeds to Feedburner

 In All, Redirects, RSS

How Redirect WordPress Feeds to Feedburner

I have been guilty of using a plugin for it  in the past, but it simply isn’t necessary, with this small code snippet you can easily achieve the same results without loading a plugin .

add_action('template_redirect', 'ns_rss_redirect');
function ns_rss_redirect() {

 if ( is_feed() && !preg_match('/feedburner|feedvalidator/i', $_SERVER['HTTP_USER_AGENT'])){
  header('HTTP/1.1 302 Temporary Redirect');


Obviously, you should replace “yourfeedname” with your Feedburner feed name.

How may need this function that allows to included thumbnail on rss feed –  Nuno Sarmento – click @ for the code snippet.

source: 10 Tips optimize WordPress theme

Recommended Posts

Start typing and press Enter to search

Let's work together

I'd love to work with you! Please fill out my project form to tell me more about your project/work. I reply to all enquiries within 48 hours.


  • January - Available
  • February - Available
  • March - Available


  • My day rate is £300.
  • I can provide a fixed price for your work.

EN - Header Enquiry Form

  • This form collects your name, email address and telephone number so that I can respond to the enquiry(ies) that you submit via this website. Please check my privacy policy for the full story on how I use, protect and manage your submitted data.