WordPress.org

Ready to get started?Download WordPress

Forums

Map old subdirectory blog to new multisite? (8 posts)

  1. jng
    Member
    Posted 2 years ago #

    Hi there, I was wondering if anyone can help me.

    I used to have multiple copies of wordpress installed, each with own install, database, etc. for example:

    example.com/site/resources
    example.com/art/history

    I have finished importing one of them into a new multisite install located here:
    example.com/wordpress/

    and so the new URL for the first one is like this:
    example.com/wordpress/site-resources/

    How do I setup a mod_rewrite, so that my old URLs run from the newer install? For example
    example.com/site/resources/2010/12/29/hello-world/
    is the same as:
    example.com/wordpress/site-resources/2010/12/29/hello-world/

    I prefer to keep the first URL structure without "wordpress" because that is how my older ones were.

    Thanks!
    Julie

  2. This is not really advisable.

    Can you move the multisite install out of the /wordpress/ directory into the root? Multisite builds the URLs based on where it's installed.

  3. jng
    Member
    Posted 2 years ago #

    Hi Andrea_r,

    unfortunately not. It is a very large website that is now 13 years old and I need to maintain the existing static file structure for the client too.

    Can anyone help me?

    Thanks,
    Julie

  4. And there's no 'acceptable downtime'? Not even for an hour?

  5. jng
    Member
    Posted 2 years ago #

    Hi Ipstenu,

    we can accept downtime, but I have folders, etc. in root directory that I need to keep working.

    If I move wordpress out into the root, I am afraid those mod_rewrite rules would mess up my static directories.

    What would you suggest I do?

    Thanks,
    Julie

  6. Existing static folders maintain priority.

  7. jng
    Member
    Posted 2 years ago #

    What about old URLs?

    I have some that look like this:
    example.com/site/resources/2006/08/15/hello-world/

    From as far back as 2005...

    They currently only work like this with the multisite install
    example.com/wordpress/site-resources/2006/08/15/hello-world/

    And I still need those old URLs to work. So I need a mod_rewrite code for that anyway...

  8. The first idea that comes to mind is to edit the site names.

    Change site-resources to 'site' and then change THOSE permalinks to /resources/YYYY/MM/DD/Postname

    Ditto art-history

    Once the layout is right EXCEPT for the /wordpress/ bit, move everything into root, search the DB for /wordpress/ and replace with /, make sure you edit the wp-config.php and the .htaccess and Bob's your uncle :)

    THAT I've done before. Worked fine. The 'move' took all of an hour and most of that was stopping to answer a weird phone call.

Topic Closed

This topic has been closed to new replies.

About this Topic