• 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:
    https://www.cookeryskills.com/html/congress_tarts.html
    to
    https://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 https://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!

  • The topic ‘Problem with redirect 301’ is closed to new replies.