How to redirect RSS feeds to a new location?
October 25, 2006 5:51 PM   Subscribe

I have a Moveable Type weblog. I would like to redirect the feeds. This probably involves using .htaccess and mod_rewrite. My mind has grown weary after two hours of trying to get this to work. Can anyone offer advice?

This weblog has feeds located at:

http://www.sitename.com/index.xml
http://www.sitename.com/atom.xml
http://www.sitename.com/index.rdf
http://www.sitename.com/feed/
http://www.sitename.com/subdir/index.xml
http://www.sitename.com/subdir/atom.xml
http://www.sitename.com/subdir/index.rdf


I would like all of these feeds to be redirected to:

http://www.feedburner.com/sitename

I am not well-versed in regular expressions. I've looked at the Apache docs, and have looked at an .htaccess file that does similar things for WordPress, but I'm stumped.
posted by jdroth to Computers & Internet (4 answers total) 2 users marked this as a favorite
 
Regular expressions are probably making it more complex than you need to.

For every redirect do this in your .htaccess file:

Redirect permanent /foo http://foobar.com/foo

You might need to put the RewriteEngine on declaration above the redirects in your .htaccess depending on the host.
posted by pedantic at 5:59 PM on October 25, 2006


Well I'll be damned.
posted by jdroth at 6:24 PM on October 25, 2006


Here is how to do it from Feedburner (same as pedantic's, mostly)
posted by mathowie at 7:03 PM on October 25, 2006


Thanks, Matt. I'd found that in the FAQ in their forums, but it was followed by all of the mod-rewrite stuff, and so I skipped over it. I made it needlessly complicated. It's all working now, which makes me happy. (As long as ORblogs is still picking up the feed. I haven't checked that yet.)
posted by jdroth at 9:53 PM on October 25, 2006


« Older Does this laptop seem cheap?   |   Good take-out/delivery in Chicago? Newer »
This thread is closed to new comments.