Forums

htaccess with Feedburner URL - access to original feed (1 post)

  1. jonathanstegall
    Member
    Posted 1 year ago #

    Hello,

    I've got a WordPress site that currently uses the following .htaccess code to send http://example.com/feed/ over to Feedburner for tracking:

    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{REQUEST_URI}      ^/?(feed.*|comments.*)        [NC]
     RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
     RewriteRule ^feed/?.*$          http://feeds.feedburner.com/URL         [L,NC,R=302]
     RewriteRule ^comments/?.*$      http://feeds.feedburner.com/CommentURL [L,NC,R=302]
    </IfModule>

    This works as it should, sending all users who visit http://example.com/feed/ to the Feedburner URL.

    I've tried accessing http://example.com/feed/rss2, http://example.com/?feed=rss2, and so on, and all of these also redirect.

    I'm looking for an htaccess command that will let me access the original feed, before it gets redirected to Feedburner, at some URL. I'm not concerned with what URL it is, as long as it works.

    I tried using
    RewriteCond %{REQUEST_URI} !^/feed/rss2/?.*$ [NC]

    To see if it would let me block /feed/rss2, but it still redirects to Feedburner. Any ideas would be most helpful.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by jonathanstegall
  • This topic is not resolved
  • WordPress version: 3.1.2