server-side redirects

server-side redirects

Posted by: mattmcalister
Posted on: 2006-04-29 11:36:00

I just moved from a different domain, and the RSS feed (/blog/index.xml) is still referenced out in the wild. WordPress generates a different file in a different location on my dreamhost server now.

How can I setup a server-side redirect from the old file pointing to the new feed (/blog/feed)?

Re: server-side redirects

Posted by: Raz2133
Posted on: 2006-04-29 21:22:00

In reply to:

How can I setup a server-side redirect from the old file pointing to the new feed (/blog/feed)?


I am not an expert on these things, but you could try a 301 redirect in your .htaccess file.

something like...

redirect 301 /oldfile.xml http://www.somedomain.com/newfile.xml

Place the above (modified for your particular file/path) in a file named .htaccess and place it in the root of your domain. Note the second parameter has to be a full URL (including the http:// part).

Mark

Re: server-side redirects

Posted by: mattmcalister
Posted on: 2006-04-30 09:56:00

That worked. Thanks.

Tags: server siderss feedblogdreamhostredirectxmldomainindex