Try this in the .htaccess file in the root, so the folder above both the installs..
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{QUERY_STRING} ^feed=rss2$
RewriteRule ^/blog/(.*)$ http://yoursite.com/blog27/?feed=rss2 [R=301,L]
RewriteCond %{QUERY_STRING} ^feed=atom$
RewriteRule ^/blog/(.*)$ http://yoursite.com/blog27/?feed=atom [R=301,L]
</IfModule>
I’m not use to writing .htaccess rules so forgive me if that doesn’t work.
Of course remove the changes if it doesn’t work…
Actually just edit the .htaccess in the /blog/ directory, adding…
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{QUERY_STRING} ^feed=rss2$
RewriteRule ^index.php$ http://yoursite.com/blog27/?feed=rss2 [L,R=301]
RewriteCond %{QUERY_STRING} ^feed=atom$
RewriteRule ^index.php$ http://yoursite.com/blog27/?feed=atom [L,R=301]
</IfModule>
Of course if you have permalinks you’ll need to adjust the URL…
I succeeded by doing:
<IfModule mod_rewrite.c>
RewriteEngine on
RedirectPermanent /blog http://www.bpmnforum.net/blog27
</IfModule>
in the .htaccess root file. I forgot to mention, that I also want to redirect the http requests to the blog – so just everything.
Yeah i did wonder if you wanted to redirect the whole directory…
Gave me a good excuse to write a few htaccess rules for testing though.
Dear users, I’ve tried the solutions above but I have a slightly different problem: my old feed was complottoemezzo.com/index.php/feed, and I want to redirect it to complottoemezzo.com/wordpress/feed (which is the new WP folder).
my index.php file in the root folder redirects to /wordpress, so the old feed doesn’t work anymore.
now, if I try to apply the algorythms above in the .htaccess file, something goes wrong as I get an “internal server error” on the whole site.
Any advice would be greatly appreciated. Thank you!