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

Welcome! Nobody's Listening is a clean comedy podcast and blog. You can subscribe (free) to this site and receive updates automatically. Thanks for visiting!

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 (http://mysite.com/?feed=podcast) 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 ^$ http://feedproxy.google.com/yoursite? [R,L]

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

Related Posts

) Your Reply...

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

  • Member of

    Blubrry.com