views:

67

answers:

2

hi helpful people,

i'm trying to get my old blogger blog feed URL (/blog/atom.xml) to redirect to my new blog feed URL (/blog/feed). A regular 301 redirect didn't work, and the advice given on the wordpress site, which is:

RewriteRule ^oldfeed.php(.*)? /wordpress/?feed=newfeed [QSA]

isn't quite cutting it either - probably because i'm not sure how to adjust the code for oldfeed to accomodate a directory. or for some other reason entirely!

Can anyone help me with this?

Thanks very much,

kb

A: 

Where does the oldfeed.php come from? You said you wanted to move /blog/atom.xml to /blog/feed. You could do the following

RewriteEngine on
RewriteRule ^(.*)/blog/atom.xml$ $1/blog/feed [R=301]

if the /blog/atom.xml and /blog/feed is at your site root (doesn't have anything else in front of it). you can simplify to just:

RewriteRule ^/blog/atom.xml$ /blog/feed [R=301]
pocketfullofcheese
A: 

thanks PFC! I was very hopeful, but this did not work. hmmmm...

the old file (oldfeed.php in WP's example, but atom.xml in my real life case) is the old blogger feed for a blog i've just converted to wordpress.

I am also wondering if my objective is completely clear. What i'm trying to do is get the URL for a file that no longer exists (from the old blogger blog - www.mysite.com/blog/atom.xml) to redirect to a new file located at www.mysite.com/blog/feed (the new WP blog feed).

any other suggestions?

Thanks very much!

kb

kb