rewrite, .htaccess and Feedburner
-
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 https://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
orderedList and everything works just fine.Well, mostly fine. Anyone headed for the “new style” feed link (https://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 ^(.*)$ https://feeds.feedburner.com/MyFeed [R,L]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ https://feeds.feedburner.com/MyFeed [R,L]
RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php https://feeds.feedburner.com/MyFeed [R,L]
# These are the standard WordPress Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php
</IfModule># END WordPress
- The topic ‘rewrite, .htaccess and Feedburner’ is closed to new replies.