SysTutorials

Using .htaccess to Redirect WordPress Feeds to Feedburner

· updated April 11, 2026

Feed redirection lets you centralize analytics and distribution while keeping your original feed accessible to feed aggregators. By routing requests through Feedburner (or similar services), you gain subscriber tracking, ads, and optimization features without breaking feed readers that depend on your WordPress feed URL.

How It Works

The redirect strategy intercepts feed requests and conditionally routes them based on the User-Agent header:

.htaccess Implementation

Add this to your .htaccess file in your WordPress root directory:

# Redirect WordPress feeds to FeedBurner
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_URI} ^/?(feed.*|.*\.xml)$ [NC]
  RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
  RewriteCond %{HTTP_USER_AGENT} !Feedfetcher [NC]
  RewriteCond %{HTTP_USER_AGENT} !feed [NC]
  RewriteCond %{HTTP_USER_AGENT} !Podcast [NC]
  RewriteRule ^(.*)$ https://feeds.feedburner.com/systutorials [L,R=301]
</IfModule>

Replace https://feeds.feedburner.com/systutorials with your actual Feedburner URL.

What This Matches

Rule Breakdown

Use 301 (permanent) rather than 302 redirects — it preserves ranking signals and tells crawlers this is permanent.

Testing the Rules

Before deploying, verify the rewrite works correctly:

# Test a normal browser request (should redirect)
curl -A "Mozilla/5.0" -I /feed/

# Test FeedBurner's request (should pass through with 200)
curl -A "FeedBurner" -I /feed/

# Test with verbose output to see redirect chain
curl -v -A "Mozilla/5.0" /feed/

Browser requests should return a 301 status code. FeedBurner requests should return 200 (allowed through).

Troubleshooting

Redirects not working:

Feeds returning 404:

WordPress Hook Alternative

For sites where .htaccess changes are restricted, handle redirects within WordPress instead. Add this to a custom plugin or functions.php:

add_action( 'template_redirect', function() {
    if ( is_feed() ) {
        $user_agent = $_SERVER['HTTP_USER_AGENT'] ?? '';

        // Allow FeedBurner and known aggregators through
        $allowed_agents = [ 'FeedBurner', 'Feedfetcher', 'Podcast' ];
        $is_approved = false;

        foreach ( $allowed_agents as $agent ) {
            if ( stripos( $user_agent, $agent ) !== false ) {
                $is_approved = true;
                break;
            }
        }

        // Redirect everyone else
        if ( ! $is_approved ) {
            wp_safe_remote_get( 'https://feeds.feedburner.com/your-feed' );
            wp_redirect( 'https://feeds.feedburner.com/your-feed', 301 );
            exit;
        }
    }
});

This approach:

The .htaccess method remains more efficient for high-traffic sites since redirects happen before WordPress loads.

Important: Feedburner Deprecation

Google deprecated standalone Feedburner in 2021 and fully shut it down in 2024. If you’re still relying on it, migrate to:

If you maintain Feedburner redirects for legacy reasons, test periodically to ensure they still function before visitors encounter breakage.

← All posts