Forum Moderators: phranque

Message Too Old, No Replies

301 Redirect podcast question

Redirect a feed to FeedBurner

         

thechrisroberts

9:47 pm on Aug 25, 2010 (gmt 0)

10+ Year Member


I've switched from WordPress to Drupal and also started using FeedBurner for the podcast and RSS feeds. I need to redirect an old feed to FeedBurner. Old feed was of the format mysite.com/?feed=podcast and I need it to redirect to feedburner.com/myfeed. I've tried:

Redirect 301 http://www.mysite.com/?feed=podcast http://feeds.feedburner.com/sitefeeds/podcast

No go. It doesn't seem to recognize the url. I'm assuming the problem has something to do with the url argument but I'm not sure how to get around it.

Suggestions?

thechrisroberts

2:57 am on Aug 26, 2010 (gmt 0)

10+ Year Member


Figured it out. Parameters need to be in a RewriteCond:

RewriteCond %{QUERY_STRING} ^feed=podcast$
RewriteRule ^$ http://feeds.feedburner.com/sitefeeds/podcast? [R=301,NC,L]

jdMorgan

1:18 pm on Aug 26, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is no need for [NC] if your RewriteRule flags, since the regex pattern contains no explicit alphabetic characters... Delete it to avoid wasting mod_rewrite parser time.

Jim

thechrisroberts

10:35 pm on Aug 26, 2010 (gmt 0)

10+ Year Member



Thanks for the tip. Nixed the NC.