• Need help with 301 redirects from one subfolder install to another subfolder install — all on same domain/server. (This question is ultimately about out how to handle 301 redirects to keep them friendly for Google in this situation.)

    I have 301 redirects from an old html site in root folder to an original wordpress install in subfolder (Eg. “Subfolder-A”) on the same domain. No problems there. Standard stuff:

    Redirect 301 /old-widget.html http://mydomain.com/new-widget/

    Note, however, that the above is *not* redirected using the name of the subfolder, like so:

    Redirect 301 /old-widget.html  http://mydomain.com/Subfolder-A/new-widget/

    Since the .htaccess file uses ReWriteBase, it wasn’t necessary to have the subdirectory in the URL… at the time:

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

    SO…… I needed to do another WP install to revamp the site design completely while keeping the previous WP install live, so I added another WP install in another subfolder (Eg. “Subfolder-B”). Again, the URLs for the new WP install in “Subfolder-B” are also different than they are for the “Subfolder-A” install.

    Now I need to add additional 301 redirects from the first WP install in “Subfolder-A” to the new WP install in “Subfolder-B”, but with new URLs in “Subfolder-B”. — Using the same 301 example as above…. After I make “Subfolder-B” live with RewriteBase, I don’t see how I can then use the original 301 redirects, eg…

    Redirect 301 /old-widget.html  http://mydomain.com/new-widget/
    Redirect 301 /new-widget/  http://mydomain.com/Subfolder-B/new-widget-with-new-URL/

    If I instead change the redirects to the following (adding “Subfolder-A” back into the URLs), will Google have an issue with this?

    Redirect 301 /old-widget.html  http://mydomain.com/Subfolder-A/new-widget/

    Redirect 301 /Subfolder-A/new-widget/ http://mydomain.com/Subfolder-B/new-widget-with-new-URL/

    Any advice greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter devdjny

    (@devdjny)

    Anyone?

    Thread Starter devdjny

    (@devdjny)

    This forum is frustrating as all hell. There are too many posts to get any traction.

    Does anyone have any insight about how to handle these redirects in this scenario above?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘301 redirects from one subfolder install to another’ is closed to new replies.