Blog

WordPress multi-site network to a standalone single website
WordPress

How to move a site from a WordPress multisite network to a standalone single website

Are you trying to separate your WordPress multisite network into individual WordPress websites? Moving a single site to its own domain is a challege that most multisite admins eventually come across. While running a multisite network has its own advantages, sometimes a single site may outgrow the network and need its own space.

When developing WordPress sites for clients, we will often develop each site on the same WordPress multisite network, and when a project is finished, move the final website to the client’s own web host as a single site.

Here, we will show you how to move a website from a WordPress multisite network to its own single install of WordPress.

Since this process involves a number of steps and changes Since you are going to do some serious changes, we should start by creating a full WordPress backup before doing anything else.

Step 1: Exporting a Single Site in WordPress Multisite Network

The built-in WordPress import/export functionality works the same way in multisite as it does on a single site install. We will be using the default tools to export the data from a site on WordPress multisite network.

First you need to login to the dashboard of the single site you want to move, and then click on Tools » Export. Next, you want to make sure that all content is checked and click on the Download Export File button.

WordPress will now create an XML file containing all your data and send it to your browser for download. Save the file on your computer (or better yet, your Dropbox account) because you will need to access it in later steps.

Step 2: Installing WordPress

Now that you have exported the files, you will need to set up a separate install of WordPress. Once you have installed and setup WordPress, you can move on to importing your child site.

Step 3: Importing Child Site to New Domain

Login to the WordPress admin area on the new location where you want to move your child site and then go to Tools » Import. On the import screen, WordPress will show you a number of import options.

You need to click on WordPress which will bring up a popup to install WordPress Importer plugin. Simply click on the Install Now button to start the installation. After that, you need to click on Activate Plugin & Run Importer.

On the next screen, you will be asked to upload the WordPress export file you downloaded earlier from WordPress multisite in Step 1 of this tutorial.

WordPress will now ask if you would like to import users as well. If you do nothing, then WordPress will import all users which is recommended if you do not want to change authors.

You will also see Import Attachments option, and you want to make sure it is checked so that WordPress can download images from your posts and pages (Don’t worry if it misses out some or most of your images. You can import them separately afterwards).

WordPress will now start importing your content. This will take a few minutes depending on how much content you have. Once it is done, you will see an ‘All done, Have fun’ notification.

That’s all. You have successfully imported data from a multisite network child site to an individual WordPress install. There are still a few things left to do.

Step 4: Setting up Redirection

If you were using custom domains for each site in your WordPress multisite network, then you don’t have to setup any redirection.

However if you were using subdomains or directory structure in your WordPress multisite, then you need to setup redirection, so that users coming to your old URLs are redirected to your new site.

Make sure that your old site on the multisite network and the site on new domain both are using the same permalink structure.

Redirecting From Subdomain to New Domain

For subdomain installs, you need to use this code in the .htaccess file of your WordPress multisite.


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.net/$1 [L,R=301]

This code redirects visitors coming to any page on subdomain.example.com to http://www.example.net. The “$” sign at the end of the destination URL ensures that your users land on the same page they requested.

Redirecting From Directory to New Domain

For directory based multisite installs, you will need to paste the following code in the .htaccess file of your WordPress multisite.


Options +FollowSymLinks
RewriteEngine On
RewriteRule ^childsite/(.*)$ http://example.net/$1 [R=301,L]

This code simply redirects any users coming on http://www.example.com/childsite/ to http://example.net. The “$” makes sure that your users land on exactly the same page or post they requested.

Don’t forget to replace childsite and example.net with the name of your sub-site and its new location.

You can also use the Safe Redirect Manager plugin to setup redirection if you don’t like the code method.

Step 5: Troubleshooting the Migration

Moving a site is not a routine task, so it is likely that you will come across some issues. But don’t worry, there is solution for every issue that you may come across.

If your WordPress export file is too large, then you can split large XML file into smaller pieces.

If your images didn’t import correctly, then you can try importing them as external images.

Contact Us