WordPress.org

Ready to get started?Download WordPress

Forums

Problem with redirect 301 (1 post)

  1. wymondham
    Member
    Posted 1 year ago #

    I am trying to use the .htaccess file to redirect pages from an 'old' non-Wordpress website to a new WordPress website. The WordPress files are in a Beta folder.

    A typical example would be to redirect:
    http://www.cookeryskills.com/html/congress_tarts.html
    to
    http://www.cookeryskills.com/recipes/cake-and-pastry-recipes/congress-tarts/

    I followed the WordPress tutorial to get the website to run from the root directory instead of the Beta directory - this required the index.php and .htaccess files being copied from the WordPress (Beta) directory to the root directory.

    The coding I have in my .htaccess file in the root (not Beta) directory is as follows:

    Redirect 301 /cookeryskills.com/html/congress_tarts.html http://www.cookeryskills.com/recipes/cake-and-pastry-recipes/congress-tarts/

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    DirectoryIndex index.php index.html index.htm
    RewriteEngine On
    RewriteBase /Beta/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /Beta/index.php [L]
    </IfModule>
    # END WordPress

    This is not working.

    Can anyone suggest how I can get this to work?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic