Support » Networking WordPress » Map old subdirectory blog to new multisite?

  • 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    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.

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    And there’s no ‘acceptable downtime’? Not even for an hour?

    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

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Existing static folders maintain priority.

    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…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Map old subdirectory blog to new multisite?’ is closed to new replies.