• Hi,

    I have a WP multisite, that consists of 3 sites (3 languages). They are connected with Multisite Language Switcher.

    WP is installed in “public_html/siteOne/”.
    The main site address is “www.mydomain.com/siteOne/”.
    The second site address is “www.mydomain.com/siteOne/siteTwo”.
    The third site address is “www.mydomain.com/siteOne/siteThree”.

    I want that the second and third sites are: “www.mydomain.com/siteTwo/” and “www.mydomain.com/siteThree/”.

    How can I achieve that in the simplest way?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Move WordPress to mydomain.com, but it’s not … easy.

    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

    Thread Starter Prti

    (@prti)

    Thanks for helping!

    So if I understand correctly, I have to move WP installation to to parent div (public_html/). That than takes care for sites 2 and 3.

    How can I keep the same url for site one (“www.mydomain.com/siteOne/”)?
    I don’t want to lose the posts I created for site 1 (IDs must stay the same also).

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    How can I keep the same url for site one (“www.mydomain.com/siteOne/”)?

    You kind of can’t. You’d have to make a NEW subsite, called SiteOne, after the move and then you could export the posts from main to the new site.

    Or you CAN switch sites, but it’s a little messier.

    Thread Starter Prti

    (@prti)

    I only have data(pages, posts..) on the main site.
    Sites 2 and 3 are empty, content will be added after the migration.

    And there is a lot of post on the main site, and their IDs are hard-coded into template files.

    So you can see why I want to avoid re-installing the main site.

    Thread Starter Prti

    (@prti)

    I just find out about ‘tools–>import/export’.

    If I understand correctly, I can just use the export tool and copy all media directories and files from my old site (those stored in wp-content/uploads directory).

    Will that migrate all my data, and keep the site as it was before?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    And there is a lot of post on the main site, and their IDs are hard-coded into template files.

    Well… If you hardcoded into your THEME, you have a problem. Don’t do that. 🙂

    You can use the export/import tools to copy the data over. It will move (copy) the images as well, AND update your URLs as needed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing directories’ is closed to new replies.