WordPress.org

Forums

Redirection
Redirection not working when redirect from non WordPress site to WordPress site (4 posts)

  1. wymondham
    Member
    Posted 2 years ago #

    I am trying to redirect from a non WordPress site to a WordPress site. The Redirection plugin is not working and the original site is displayed when you type in the address bar.

    An example is trying to redirect from:
    http://www.cookeryskills.com/html/congress_tarts.html
    to
    http://www.cookeryskills.com/recipes/cake-and-pastry-recipes/congress-tarts/

    The coding I have in my .htaccess file is as follows:

    # 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

    I had previously amended the .htaccess file as set out in the tutorial below to add
    DirectoryIndex index.php index.html index.htm.
    This seems to have worked okay.

    http://wordpress.org/support/topic/moving-site-to-root-directory-while-wordpress-is-in-subdirectory

    http://wordpress.org/extend/plugins/redirection/

  2. casper14209
    Member
    Posted 2 years ago #

    I also am in the same boat. For some reason my system is also doing the same thing. When redirecting directories and folders it works fine. As soon as you put in a specific file index.php, about.html, etc. It then responds with the server 404 error instead of the WP page not found error.

    Side note: This is a Multisite install that is having the issue. On a couple standalone installs this works normally.

    Thanks,
    Vince

  3. wymondham
    Member
    Posted 2 years ago #

    My problem was ultimately solved by the following:
    a) Renaming the 'old' homepage from my old website to a different name (ie. from index.html to index_old.html)
    b) Deleting the line of code:
    DirectoryIndex index.php index.html index.htm
    from the .htaccess file in the foot directory
    This meant that my new WordPress site worked okay with the WordPress homepage and pages/posts showing as required.
    In terms of the redirection, I got this to work by using the following code in the .htaccess file:
    Redirect 301 /html/congress_tarts.html http://www.cookeryskills.com/recipes/cake-and-pastry-recipes/congress-tarts/
    Thanks
    Jeremy

  4. casper14209
    Member
    Posted 2 years ago #

    Ah, and I have also returned with a solution to my problem.
    Ended up getting rid of the plugin and editing the .htaccess as well.

    You can see the full thread and my markup on http://wordpress.stackexchange.com/questions/91647/multisite-htaccess-301-redirects

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic