WordPress Multisite Network (launched with version 3.0) provides you with a "network" of websites, manageable from one place. This feature proves to be a boon when you wish to make similar changes to multiple sites. Thus, setting up a blog is no more a mess. Was web hosting and management ever this effortless?
Though the Multisite feature drastically reduces your efforts, getting your site ready for the same is not an easy job. The procedure is a bit complex, but we are here to bridge the gap with our step by step tutorial. Do follow us throughout, and we guarantee a hassle-free movement of your website into the Multisite.
Before performing any migration task, do ensure that you make a backup of your site. You may use any backup plugin you wish to, but do remember to keep a backup of your site to secure your website content in case you accidentally deleted it or modify it.
You will need the following beforehand to be able to follow our tutorial properly:
- WordPress (installed) with a running site
- A Multisite network administered by you
- An FTP client, PHPMyAdmin and a code editor (for manual tasks)
Method 1: Moving your site into Multisite using a plugin
Plugins, as we all know, facilitate any task with their "plug-and-play" feature. Having said this, you can use plugins to migrate your website if and only if you have not tweaked your site too much. This seems to be the only limitation of using a plugin since when you relocate, none of your customizations will accompany, and your efforts will go in vain.
Now that you are aware of when to use a plugin let us start with exporting our website. Follow the procedure as stated:
- First of all, let us learn how to export the content from your old site:
- Open your website(admin screen) and head to Tools -> Export
- Select "All Content" and click on "Download Export File" and save the XML file on your system.
- Set up a new site ( as you do it)
- Install the same themes and other plugins before importing the content on the new site.
- Now finally, follow these steps to import the content on your site:
- Delete the dummy content ( in Posts and Page listings) and widgets. You need an empty website.
- Install " WordPress Importer" from your Plugins screen.
- Visit Tools->Import in the admin screen of your new site. Scroll through until you see WordPress. Click "Run Importer."
- Tap on "Choose File" and select the XML file you saved earlier. Click "Upload file and import."
- Assign the content to existing authors or import the old authors, as per your convenience.
- Select "Download and import file attachments." Then, click "Submit." All your media and contents will get copied.
- The "All Done" notification confirms the import of the content.
There are multiple plugins available on WordPress to easily move your site to a multisite network.
If you have too much customization on your site then avoid using any plugins for migration.
In such a case, use manual migration to move your site, it will give you larger flexibility and retain your customization.
Method 2: Manual Migration of site into Multisite
You will need to copy the following three components from the old site:
- theme and plugin files
- database tables
Following are the steps to manually move your website into a Multisite:
- Build a new website. Make sure to empty it by removing any default text or widgets.
- Every site in a Multisite has a unique ID. This ID is useful in finding its location in the site’s directory. You can know your site’s ID by visiting Network Admin -> Sites, followed by "Edit" for the website you just created. The URL will look like http://mynetwork.com/wp-admin/network/site-info.php?id=XX. "XX" is the ID you need. This ID will be the folder name containing all the site files, and a prefix for its database table names.
- The next step is to upload files to the new site. Before uploading any data, install the theme and plugins you wish to use on your new website. Visit "wp-admin/uploads" of your old site. Copy the files and trace the "wp-admin/uploads" directory of your new website’s ID.
- Now you need to export tables of your old site. Follow these steps for the same:
- Visit the "PHPMyAdmin" of your former website and click on the "Structure" tab. Leaving "wp_users" and "wp_metadata", select all of the tables. In the "With Selected" dropdown box, select "Export" and click on "Go." Download the SQL file and save it on your system.
- Set up the users on your new website. The users must be the same as you had in your old one.
- Edit the links and table references and resave the SQL file.
- In phpMyAdmin, drop the tables which have your site ID as the prefix. These are the duplicate tables that WordPress has added to your new site. Once done, Click on: Import -> Choose File -> "The SQL file you saved" -> Go. A message will affirm you regarding the uploading status of your database.
- Lastly, do clear your Browser’s cache. It helps to avoid any errors that may arise from the cached data saved from your old site.
- Now login to your WordPressadmin(for your new site). Go to the "Permalinks" screen and turn on pretty permalinks.
Set-Up Domain Mapping:
These were the steps on "How you move your website in a Multisite Network WordPress." Setting up a blog and web hosting is supposed to be a tricky task when you are required to manage several websites. It is however simplified using the Multisite feature of WordPress.
The Multisite feature is like a central authority that governs more than one constituency at once. The feature is of great help to blog writers who wish to upload similar content on more than one website. However, it is not that simple to move your site to a Multisite network as things might get complicated at times. All you need to keep in mind is to keep a "Backup" of your data in case any error turns up. This is why we came up with this tutorial, as many people had a query regarding this. Drop your comments if you get stuck anywhere.