How to merge one WordPress site into a multisite network?

How to merge one WordPress site into a multisite network?

Merging A Single Site Into a WordPress Multisite Network. WordPress Multisite allows webmasters to create hundreds of sites powered by a single WordPress core, inside a single directory. Converting WordPress into a Multisite installation is pretty simple. Just follow the instructions at the Codex or use the multisite-convert WP-CLI command.

How are users shared in a multisite network?

In Multisite the users table is shared across all sites. There’s only one wp_users table and one wp_usermeta table. This is the hardest part of the migration if you have many users. Users have to be merged from your old wp_N_users table into the new wp_users table.

Where are site uploads stored in WordPress Multisite?

In a Multisite installation site uploads are kept under wp-content/uploads/sites/N, where N is the ID of the site. Copy over all media uploads (directories with 4-digit year names) here. Some plugins do not support Multisite and will want their uploads to live in the global wp-content/uploads directory.

How to do subdomain installs in WordPress Multisite?

For subdomain installs, you need to use this code in the .htaccess file of your WordPress multisite. This code redirects visitors coming to any page on subdomain.example.com to http://www.example.net. The $1 sign at the end of the destination URL ensures that your users land on the same page they requested.

How to export a WordPress subsite to a single site?

With API Migration you can export and import sites. For this tutorial, we’ll export a subsite from a Multisite installation into the single WordPress installation we’ve previously set up. Click the Export button to begin the process (if you’re in the plugin’s dashboard screen, click on Export > Begin Migration ).

Can a single site be moved to a multisite network?

Moving an existing single-site installation into an existing WordPress Multisite network can be confusing and error-prone, so we encourage you to create a full backup of both sites before you begin. When the backup is complete, copy all the contents (including a database dump) of the single site to the same server hosting your Multisite network.

How is data stored in a multisite network?

A Multisite network stores data about each site as follows: Upload files are stored separately for each site, in WordPress-content/uploads/sites/xx, where xx is the ID of the individual site.

What are the benefits of a WordPress Multisite?

WordPress Multisite has many benefits. It lets you create as many websites as you need with just one WordPress installation. It allows for connections between those sites, sharing of data and users, and it gives you a way to make money from your WordPress installation, by selling sites on your network to users.