exist WordPress Multisite You can easily manage multiple sites in a single environment, all sharing the same network resources. As soon as a WordPress core or plugin is updated, all sites are automatically synchronized with the update. However, there are times when you need to detach a sub-site and turn it into a separate WordPress installation.
This migration is not simple, but this article will explain the detailed steps so that you can choose the right way to complete the process.
![图片[1]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127143510854-image.png)
Why is it complicated to convert a WordPress multisite subsite to a single site?
In a WordPress multisite network, each site has a separate database with its data stored separately. When a new site is added to a multisite network, a new database is created for it.
Migrating a site in a multi-site network to a single site is more complex than upgrading from a single site to a multi-site because the data is stored together.
How to Migrate WordPress Multisite Subsites to Single Site (Manual Method)
Attention:Before you begin, always remember to create multi-site data backups to facilitate the migration process safely.
Installing a new WordPress website
A new WordPress website is required to migrate the sub-site. If a new WordPress website has already been created, you can skip this step. If you haven't created a new website yet, you can read our two tutorials to create a new website:
Using 1Panel on the Tencent cloud manual installation of WordPress super detailed tutorials
Creating Plugin and Theme Zip Files on Subsites (WordPress Multisite)
Now to prepare the newly created WordPress site, you need to create a zip file for the sub-site plugin and theme folders.
The following steps can be followed:
- Through remote toolsmaybeStarting an SSH TerminalAccessing your Web server
- Using server access credentialsOpen your terminal.
- switch toMultisite wp-content folder
In my case, the wp-content folder is located atapplication> DB Folder> public_html > wp-contentDown.
Enter the following commands to perform the appropriate functions:
cd Applications > db folder > public_html > wp-content
Change directory to wp-content Location.
![图片[2]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127145640503-image.png)
zip -r plugins.zip plugins
Create a file named "plugins.zip"Zip file
zip -r themes.zip themes
Create another Zip file named "themes.zip".
![图片[3]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127145701527-image.png)
probe
Your folder.

- show (a ticket)FileZillaand connect to the server
- switch toMultisite wp-content folderand downloadplugins.ziprespond in singingthemes.zipfile

Upload sub-site Plugins.zip and Themes.zip files to a single site
The next step is to upload the plugins.zip and themes.zip files to the single site wp-content folder.
- Opening a Single Site Server from FileZilla
- Go to the wp-content location and upload the recently downloaded sub-site plugin and theme zip files
- Change the existing names of the themes and plugins folders to something like themes-sss & plugin-sss

- Open the single-site server through the terminal
- Go to the wp-content folder and run the following command to extract the plugins.zip file:
unzip plugins.zip
It will extract the plugin files and create a plugin folder.

unzip themes.zip
It will unzip the theme files and create a theme folder.

After unzipping the folder, go to the Single Site WordPress Dashboard.
- click (using a mouse or other pointing device)plug-in (software component)furthermoreactivateAll plug-ins
- activateSub-site theme
Export all sub-site content and data
Export the complete data from the sub-site.
- switch toWordPress Multisite Dashboard
- Hover over "My Sites".and selectsub-site
![图片[9]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127150204700-image.png)
- Next, go to"Tools" > "Export"
- optionAll contentand clickDownload export file

Importing data into a new WordPress site
After exporting content from a WordPress multisite, it must be imported into a new WordPress site.
- Go to the newly createdWordPress website meterclassifier for coils of wire
- Navigate to"Tools" > "Import"
- Installing the WordPress Importer

- After that, clickRun the importer>Select File(extracted from sub-site)
- strike (on the keyboard)Upload a file and import itbuttons

- Assigning a user to a post can either create a new user or be used with an existing user.
If you encounter any problems importing subsites (multisite data), add the following command to wp-config to diagnose the problem:
define( 'IMPORT_DEBUG', true );
Had a problem importing images, diagnosed the problem based on the above command and then fixed it by placing the following code in the wp-config file:
add_filter('https_ssl_verify', '__return_false');
After successfully importing multisite content, check the site's fixed links.
![图片[13]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127150815899-image.png)
How to Restore a Subsite from a WordPress Multisite to a Single Site (via Plugin)
expense or outlayWordPress PluginIt's quick and easy, novice-friendly, and you can restore multiple sites to a single site almost instantly and bypass all the technical steps with the help of the Prime Mover plugin.
Let's see how to achieve that with this plugin:
Installing Prime Mover Plugin on WordPress Multisite
Follow the steps below to install the Prime Mover WordPress plugin to start the process:
![图片[14]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127151343726-image.png)
- switch toWordPress Multisite Dashboard(Network Administrator)
- switch toplug-in (software component)> ClickAdd New Plugin
- locatePrime Mover
- click (using a mouse or other pointing device)"Installation"
- Click to activateButton activation plug-in
Export sub-site (WordPress multisite) files to a single format
Now export sub-site files to a single site format with the Prime Mover plug-in.
- go tonetwork administrator>All sites
- Click on the sub-site's"Export Blog ID"
Once you click on Export Blog ID, you will see different types of export options for sub-sites.
- Select "Export databases, media files, plugins and themes"Options and"Export to single-site format"Options
- click (using a mouse or other pointing device)Export Now
![图片[15]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127151504153-image.png)
Depending on the site of the website, exporting sub-site data will take a few seconds.
- When the export is complete click "Download the package"
![图片[16]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127151623689-image.png)
A WP Prime file containing the site content and data will be available.
Installing a new WordPress website
Then it's just like above, you need to create a new site. Just refer to the two tutorials above to create it.
Installing Prime Mover and Importing Sub-Site Files to a Single Site
The Prime Mover plugin needs to be installed on a single site, just as you would install it on a multi-site.
- Open Single Site Dashboard
- switch toplug-in (software component)>Add New Plugin
- Find the plug-inPrime Mover
- Click "Installation"Button.
- activateplug-in (software component)
![图片[17]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127152225507-image.png)
- go to"Tools" > "Migration tools"
- click (using a mouse or other pointing device)"Import package"lower"Recovery."Then select the WP PRIME file we exported in the previous step.
![图片[18]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127152245749-image.png)
It will take a few minutes to process and upload the exported files. Once the import is complete, be sure to check and set up fixed links to your website.
The sub-site (WordPress multisite) was then successfully converted to a single site.
![图片[19]-如何将 WordPress 多站点子站点迁移为单站点:详细步骤指南](https://www.361sale.com/wp-content/uploads/2024/11/20241127152349622-image.png)
summarize
Migrating a WordPress multisite sub-site to a single site, while seemingly complex, can be accomplished successfully by following either of the two methods described above.
- Manual method: Suitable for more technically competent users with a high degree of control.
- Plug-in method: For users who wish to save time and effort.
Choose the right method according to your needs and make sure you back up your data before the operation. If you encounter any issues during the migration process, you can post them in the comments section or in thecommunityLeave a message and it will be answered for you!
Link to this article:https://www.361sale.com/en/27998The article is copyrighted and must be reproduced with attribution.
No comments