How to Revert a WordPress Multisite to a Single Site

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 多站点子站点迁移为单站点:详细步骤指南

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:

Newbies can also get started quickly: AliCloud + pagoda panel to create a WordPress site full strategy

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 atapplicationDB Folderpublic_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 多站点子站点迁移为单站点:详细步骤指南

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 多站点子站点迁移为单站点:详细步骤指南

probe
Your folder.

输入 ls 检查文件夹
  • show (a ticket)FileZillaand connect to the server
  • switch toMultisite wp-content folderand downloadplugins.ziprespond in singingthemes.zipfile
从 FileZilla 下载 plugins.zip 和 themes.zip

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
将子站点 Plugins.zip 和 Themes.zip 文件上传到单个站点
  • 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.

解压插件.zip

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

解压主题.zip

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 多站点子站点迁移为单站点:详细步骤指南
  • 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
将数据导入新的 WordPress 网站
  • 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 多站点子站点迁移为单站点:详细步骤指南

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 多站点子站点迁移为单站点:详细步骤指南
  • 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 多站点子站点迁移为单站点:详细步骤指南

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 多站点子站点迁移为单站点:详细步骤指南

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 多站点子站点迁移为单站点:详细步骤指南
  • 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 多站点子站点迁移为单站点:详细步骤指南

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 多站点子站点迁移为单站点:详细步骤指南

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!


Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by Banner1
THE END
If you like it, support it.
kudos41 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments