Ready to get started?Download WordPress


RSS Feed Redirect Not Working (Not using FeedBurner) (1 post)

  1. jenz
    Posted 7 years ago #

    I recently moved from using WordPress as a blog (http://www.example.com/blog/) to using WordPress as a CMS (http://www.example.com/) I moved WordPress from the /blog directory to the root / directory.

    I would like to have my old RSS feed (/blog/?feed=rss2) be redirected to the new feed (/feed/).

    I tried to create a mod_rewrite rule but cannot get it to work:
    RewriteRule ^feed/$ /blog/?feed=rss2 [L]

    My .htaccess:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html)/?(.*)$ [NC]
    RewriteRule ^.*$ - [L]

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^feed/$ /blog/?feed=rss2 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    My permalink structure:

    Any thoughts or suggestions would be greatly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic