[resolved] rewrite, .htaccess and Feedburner (3 posts)

  1. Chris_K
    Posted 10 years ago #

    I realize my question isn't necessarily a "pure" wordpress scenario, but am hopeful that some of the smart folks here will have an idea.

    I originally ran my blog from a windows server and had that darned "index.php" embedded in all links. So, a lot of folks have my rss feed as http://www.myserver.com/myblog/index.php/feed/

    I recently did two things:
    1) Moved to Linux / Apache
    2) Signed up for Feedburner.

    For the feedburner integration, I use the great plugin from
    and everything works just fine.

    Well, mostly fine. Anyone headed for the "new style" feed link (http://www.myserver.com/myblog/feed/) gets redirected to feedburner.

    I can't seem to figure out how to manipulate .htaccess to redirect thos guys still pulling the "old" feed url with the embedded index.php. Dunno if this helps, but here's a copy of my .htaccess (somewhat scrubbed):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # Redirect FeedBurner to your own Feed
    RewriteBase /blog/
    RewriteRule ^feedburner_987654/?$ /blog/feed/ [R,L]
    RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    # These Rules redirect all feed Traffic to FeedBurner
    RewriteBase /blog/
    RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
    RewriteRule ^(.*)$ http://feeds.feedburner.com/MyFeed [R,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ http://feeds.feedburner.com/MyFeed [R,L]
    RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php http://feeds.feedburner.com/MyFeed [R,L]
    # These are the standard WordPress Rules
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php

    # END WordPress

  2. Chris_K
    Posted 10 years ago #

    Anyone have any thoughts on this? To summarize, I'd like to add one more sort of rewrite rule.

    Right now, if you hit my /blog/feed/ url, I send you to feedburner.

    But I can't catch you with my current .htaccess if you come in at /blog/index.php/feed/ So, I want to rewrite that one too.

    I suspect it is a trivial thing, but I'm just not an apache guy. I suppose I should find an apache forum though!

  3. Michael Bishop

    Posted 10 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic