Forum Moderators: phranque
All I want to do is redirect all users who access my RSS feed with a browser, but leave the FeedBurner bot alone -- otherwise there are too many redirects.
This is what I have so far:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
rewriteCond %{REQUEST_URI} /rss.php
RewriteCond %{HTTP_USER_AGENT} !^FeedBurner
RewriteRule .* [feeds.feedburner.com...] [R=301,L]
</IfModule>
This htaccess file is in the same folder as the file rss.php and yet I have nothing. Any help?
Cleaning up what's left gives:
Options +FollowSymlinks
RewriteEngine on
#
RewriteCond %{HTTP_USER_AGENT} !^FeedBurner
RewriteRule ^rss\.php$ http://feeds.feedburner.com/feed [R=301,L]
Flush your browser cache completely when changing the code or when switching between your browser user-agent and the FeedBurner user-agent strings while testing.
Jim