• Hello everyone,

    I recently became the administrator of the site of an association (help and rescue of animals) and I need some help.

    Here is the situation. The website was aweful so we decided to make a new one but without getting the previous one offline. In order to do that, we activate the mutlisite mode of wordpress and developped a subdirectory website.
    The main website is at https://www.mywebsite.com and the new one at https://www.mywebsite.com/test , so it is a subdirectory website.

    Question is, how can I do to bring https://www.mywebsite.com/test to become the root site (aka https://www.mywebsite.com ) ? I could trick with redirection, but it’s not the point and not clean. Also I would like something not to destructive in case something goes wrong and I need to bring back the old website.

    Is there any free or not expensive plugin that can do that ?

    Technical details :
    – Hosted at OVH
    – wordpress version is 5.6.3
    – php version is 7.0
    – db is a 70Mo mysql
    – I have access to phpmyadmin, wordpress multisite interface, ftp

    I’ve already done a backup of the Database and all the FTP content.

    Thank you in advance guys

    Halver

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @halver

    I’m not sure if it’s going to work, normally you create a staging website just using a subdomain instead of multisite.

    Bur multisite creates a copy of the original tables of the database and creates a copy on the same database.

    You may try to change the site_url and home from the wp_options database, but to be honest, since everything is like “mixed” because of the multisite it may break everything.

    Maybe try to use a migration plugin, if you’re using OVH, I’d believe you’re using Plesk right? If yes, I may provide some workaround in this case.

    I’ve found an external article: https://annaschneider.me/how-to-change-a-multisite-subdirectory-to-the-primary-domain/

    https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/

    It seems to be only the database, so it should be easy, but make sure to create a backup before doing it.

    Thread Starter halver

    (@halver)

    thank you for your answer.

    I’m not sure that this will do the trick. I mean, if I make the /test/ website point to the primary domain, what happened of the website that was already here ?

    Here some screens of the DB that I’m supposed to change :
    https://postimg.cc/gallery/hzHjYTg

    Thread Starter halver

    (@halver)

    Maybe I can do something like moving the main site to a subdir, then bring the /test/ website as primary site ?

    Otherwise I’m considering doing a staging website, how would you do that ? I can re-developpe my /test/ site as a staging website and then switching with the main one, but does that work once the multisite mode of wordpress is activated ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subdirectory site to root’ is closed to new replies.