How to forward a feed with a question mark in it to Feedburner

I haven’t actually found an answer to this question anywhere on the internet. I’ve seen the question asked… but no answers.

How can I forward my dynamically generated feed ( to Feedburner using .htaccess?

I’m no code genius, and if someone finds a better way, please let me know… but here’s what worked for me.

# Add the part of your url that is after the quesion mark between the ^ and the $
RewriteCond %{QUERY_STRING} ^feed=podcast$
# This line stays untouched. It keeps FeedBurner from doing an infinite loop
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
# This line sends the match from the Query String to the new feed. The ? at the end drops the feed=podcast part
RewriteRule ^$ [R,L]

Hope it works for you! I have no help for you if it doesn’t. Sorry.

Leave a Reply

Your email address will not be published. Required fields are marked *