Move a WordPress multisite to subfolder (the whole site)?

Follow this steps:

you can move your multi-site root to ms folder Then

step 1: change the database url into options table for both site and all other url.

ex: example.com TO  example.com/ms/

step 2: DB wp_site table SET your domain name and path:

ex: domain :example.com
    PATH: /ms/

DB wp_blogs table SET your domain name and path for both site:

ex: domain :example.com
    PATH: /ms/
    PATH: /ms/your-newtwok-site-name/

step 3: httaces code and wp-config code comments for multi-site. only default code are reaming

step 4: Run your main site it’s work after add this line into config.

define( 'WP_ALLOW_MULTISITE', true );

step 5: Login into admin and goto the tools menu. if it’s display the message like your plugin disable then disable your plugin and get your new httaces and wp-config code for multi-site after that enable your plugin.

i am done my multi-site move to local to live. hope is work for you.

Note: Please backup your db and files.

Leave a Comment