Forums

Adding Rewrite Rule (3 posts)

  1. josepv
    Member
    Posted 6 years ago #

    Hi All,

    I am using WP 2.0 and want to add a simple redirect rule to my blog that will redirect a user from ataom.xml to /feed/atom/. The blog was originally created with Blogger. I have just added an extra item to the default .htaccess file (see below). It's not working. Can someone suggest how to fix it?

    Thanks in advance,

    Jose

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    RewriteRule /atom.xml?$ /feed/atom/

    </IfModule>

    # END WordPress

  2. josepv
    Member
    Posted 6 years ago #

    Can anybody help with this request?

    Thanks in advance,

    Jose

  3. sriggins
    Member
    Posted 5 years ago #

    Above your #BEGIN WordPress put:

    RedirectPermanent /atom.xml http://yordomain/feed/atom.

Topic Closed

This topic has been closed to new replies.

About this Topic