• Resolved frankmichaelkraft

    (@frankmichaelkraft)


    I have an old WP (2.6.5) and a new WP (2.7.1).
    The old is in the folder /blog, the new in /blog27
    Both use different databases, but the content is now the same.
    I want to redirect all Feed accesses that originally go to /blog instead to /blog27.
    The documentation recommends to use a plugin, Feed Director, but this does not exist any more.
    I have made some experiments with the .htaccess file, but without success.

Viewing 5 replies - 1 through 5 (of 5 total)
  • t31os

    (@t31os)

    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…

    t31os

    (@t31os)

    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…

    Thread Starter frankmichaelkraft

    (@frankmichaelkraft)

    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.

    t31os

    (@t31os)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to redirect my feeds?’ is closed to new replies.