Server-side redirects

software development


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)?


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

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).


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )


That worked. Thanks.