{"id":159081,"date":"2016-09-17T13:00:14","date_gmt":"2016-09-17T13:00:14","guid":{"rendered":"https:\/\/premium.wpmudev.org\/blog\/?p=159081"},"modified":"2022-02-14T16:07:58","modified_gmt":"2022-02-14T16:07:58","slug":"moving-wordpress-site-into-multisite","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/moving-wordpress-site-into-multisite\/","title":{"rendered":"How to Move a Single WordPress Site into a Multisite"},"content":{"rendered":"<p>One of the most frequent questions I get\u00a0asked by my students is this: how do you move an existing WordPress site into a Multisite network?<\/p>\n<p>This post answers that question and takes you through the steps you need to follow to move a site into a network. In this post, we&#8217;ll look at:<\/p>\n<ul>\n<li><a href=\"#choosing-a-method\">Choosing a Migration Method<\/a>\n<ul>\n<li><a href=\"#before-you-start\">Before You Start<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#exporting-content\">Exporting Content from the Old Site<\/a><\/li>\n<li><a href=\"#creating-a-new-site\">Creating a New Site in Your Network<\/a><\/li>\n<li><a href=\"#plugins-themes\">Installing and Activating Plugins and Themes<\/a><\/li>\n<li><a href=\"#importing-content\">Importing Content to Your New Site<\/a><\/li>\n<li><a href=\"#migrating-widgets\">Migrating Widgets<\/a><\/li>\n<li><a href=\"#tidying-up\">Tidying Up<\/a><\/li>\n<li><a href=\"#easier-than-you-think\">Migrating Into a Network Is Easier Than You Think<\/a><\/li>\n<\/ul>\n<h2 id=\"choosing-a-method\">Choosing a Migration Method<\/h2>\n<p>In this post, I will\u00a0show you the easy way to migrate your site using two plugins. This has the advantage of being quick and easy, and for most sites it will migrate almost everything you need.<\/p>\n<p>But if you&#8217;ve made a lot of customizations to your site using the Customizer, or you&#8217;ve spent a lot of time setting up your plugins, this method won&#8217;t migrate all of that. You can either take the time tweaking everything again (see the final part of this post), or you can manually migrate the site by copying the relevant database tables.<\/p>\n<p>Migrating the database tables involves using phpMyAdmin to download database tables, editing the resulting SQL file, and re-uploading that using phpMyAdmin again. It saves you having to do any tidying up at the end but can be somewhat\u00a0daunting. I&#8217;ll cover that in a separate post &#8211; if you don&#8217;t feel up to that, just follow the instructions here.<\/p>\n<p>So let&#8217;s get started!<\/p>\n<h3 id=\"before-you-start\">Before You Start<\/h3>\n<p>But wait. Before you start, there&#8217;s a very important thing you need to do.\u00a0Back up your sites. Make a backup of the site you want to move AND your network. Just in case. Use your favorite <a href=\"https:\/\/wpmudev.com\/blog\/premium-freemium-wordpress-backup-plugins\/\" target=\"_blank\">backup plugin<\/a>\u00a0(it&#8217;s <a href=\"https:\/\/wpmudev.com\/project\/snapshot\/\" target=\"_blank\">Snapshot Pro<\/a>, right?).<\/p>\n<p>Ready? Now you can get started.<\/p>\n<h2 id=\"exporting-content\">Exporting Content from the Old Site<\/h2>\n<p>WordPress provides a tool you can use to import and export your content easily. Let&#8217;s start with that. Open up your starting site. Here&#8217;s mine:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/starting-site.png\" alt=\"Starting site for migrating\" width=\"670\" height=\"394\" \/><\/p>\n<p>In the admin screens, go to <strong>Tools &gt; Export<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/export-screen.png\" alt=\"WordPress exporter screen\" width=\"670\" height=\"422\" \/><\/p>\n<p>Unless you just want to export certain post types, keep the <strong>All content<\/strong>\u00a0option\u00a0selected and click the <strong>Download Export File<\/strong> button. WordPress will create a XML\u00a0file and download it to your computer.<\/p>\n<h2 id=\"creating-a-new-site\">Creating a New Site in Your Network<\/h2>\n<p>Now open the network into which you want to import your site. Start by <a href=\"https:\/\/wpmudev.com\/blog\/wordpress-multisite-masterclass-user-site-registration\/\" target=\"_blank\">creating a new site<\/a> in the normal way.<\/p>\n<h2 id=\"plugins-themes\">Installing and Activating Plugins and Themes<\/h2>\n<p>Before you import content, install the same theme you were using in the old site on your network and activate it for your new site. Do the same for any plugins.<\/p>\n<p>If you&#8217;re not sure how to\u00a0install and activate themes and plugins on your network, see our <a href=\"https:\/\/wpmudev.com\/blog\/wordpress-multisite-masterclass-activation-configuration\/\" target=\"_blank\">guide to\u00a0configuring Multisite<\/a>.<\/p>\n<h2 id=\"importing-content\">Importing Content to Your New Site<\/h2>\n<p>Now, before you import the content from your old site, go into the Posts and Pages listings in the admin screens and delete any dummy content. These are the posts and pages that get created automatically when you set up the site. Delete any widgets too. You should aim to have an empty site.<\/p>\n<p>Before you can import the content from your old site, you must\u00a0install the <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/wordpress-importer\/\" target=\"_blank\">WordPress Importer<\/a> plugin. Go to your <strong>Plugins<\/strong> screen in the network admin and install that (search for <strong>WordPress Importer<\/strong>).<\/p>\n<p>Now in your new site&#8217;s admin screens, go to <strong>Tools &gt; Import<\/strong> and scroll down to\u00a0<strong>WordPress<\/strong> at the bottom of\u00a0the list. Click the <strong>Run Importer<\/strong> link.<\/p>\n<p>WordPress will ask you to select a file to upload:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/import-file.png\" alt=\"WordPress importer screen\" width=\"670\" height=\"225\" \/><\/p>\n<p>Click the <strong>Choose File<\/strong> button and then select the file from your machine (it will be in your downloads folder unless you&#8217;ve moved it). Remember, you&#8217;re looking for a XML\u00a0file. Once you&#8217;ve done that, click the <strong>Upload file and import<\/strong> button.<\/p>\n<p>The importer now wants to know if you want to assign content to existing authors on your network, or import the old authors too:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/import-authors.png\" alt=\"Importing authors using the Import tool\" width=\"670\" height=\"329\" \/><\/p>\n<p>Select whichever option applies to you. I&#8217;m assigning my posts to my existing username, but if you&#8217;re running a multi-author site, you may need to import authors.<\/p>\n<p>Finally, select\u00a0the <strong>Download and import file attachments<\/strong> option to copy media files from\u00a0your old site and insert them in the correct place in your new one. This is one of the most useful features of the Importer. I&#8217;ve never yet come across a site where I didn&#8217;t check that box!<\/p>\n<p>Click <strong>Submit<\/strong> and the importer will work its magic.<\/p>\n<p>Eventually you&#8217;ll see the <strong>All done!<\/strong> message. Look at\u00a0your <strong>Posts<\/strong>\u00a0admin screen to see the imported posts: you&#8217;ll find pages too.<\/p>\n<p>So that&#8217;s your content imported. Next, let&#8217;s import widgets. You can do this with another\u00a0plugin.<\/p>\n<h2 id=\"migrating-widgets\">Migrating Widgets<\/h2>\n<p>Before you migrate any widgets, make sure you&#8217;ve got the same themes and plugins activated on your new site as on the original site. While you&#8217;re adding plugins, install the <a href=\"https:\/\/wordpress.org\/plugins\/widget-importer-exporter\/\" target=\"_blank\">Widget Importer &amp; Exporter<\/a> plugin and activate it on your new site.<\/p>\n<p><em>Note: Widgets go into widget areas defined by your theme, so if you haven&#8217;t activated the correct theme, this step won&#8217;t work correctly. And if there are any widgets provided by plugins, they won&#8217;t import if you haven&#8217;t\u00a0installed\u00a0the plugin on the new site.<\/em><\/p>\n<p>Now go to the admin screens for your old site and install and activate the widget settings plugin there too. Go to <strong>Tools &gt; Widget Importer &amp; Exporter<\/strong> to see the widget import\/export screen:<\/p>\n<figure id=\"attachment_205441\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-205441\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/widget-importer-exporter.png\" alt=\"Widget Importer Exporter\" width=\"600\" height=\"686\" \/><figcaption class=\"wp-caption-text\">The Widget Importer Exporter screen.<\/figcaption><\/figure>\n<p>Click the <strong>Export Widgets<\/strong> button to create a download <em>.wie<\/em> export file of all your site&#8217;s active widgets and save the file on your computer<\/p>\n<p>Now switch to your new site and go to <strong>Tools &gt; Widget Importer &amp; Exporter<\/strong>.<\/p>\n<p>This time, we&#8217;re going to import the file you saved to your computer.<\/p>\n<p>On the <strong>Widget Importer &amp; Exporter<\/strong> screen under the Import Widgets section, you have two options:<\/p>\n<ol>\n<li>You can select an upload the <em>.wie<\/em> file generated by the plugin using the &#8216;Choose file&#8217; button, or<\/li>\n<li>\u00a0You can copy and paste the contents of your <em>.wie<\/em> file by clicking on the link.<\/li>\n<\/ol>\n<p>Note that you&#8217;re looking for a <strong>.wie<\/strong> file this time, not a XML file.<\/p>\n<figure id=\"attachment_205442\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-205442\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/widget-import-copy-paste.png\" alt=\"Widget Importer &amp; Exporter plugin - Copy and Paste .wie file option\" width=\"600\" height=\"425\" \/><figcaption class=\"wp-caption-text\">Let&#8217;s import our widgets using Widget Importer &amp; Exporter plugin&#8217;s Copy and Paste option.<\/figcaption><\/figure>\n<p>Once you have uploaded or copy and pasted in the .wie file, click the <strong>Import Widgets<\/strong> button.<\/p>\n<p>Then plugin will perform the import and display a list of all widgets imported into your new site under the <strong>Import Results<\/strong> section.<\/p>\n<figure id=\"attachment_205443\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-205443\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/widgets-imported.png\" alt=\"Widget Importer &amp; Exporter results\" width=\"600\" height=\"720\" \/><figcaption class=\"wp-caption-text\">Say hello to our newly-imported widgets.<\/figcaption><\/figure>\n<p>Now, got to your new site and check how similar it is to the old one:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-670x670 size-670x670\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2016\/09\/final-site.png\" alt=\"final-site\" width=\"670\" height=\"480\" \/><\/p>\n<h2 id=\"tidying-up\">Tidying Up<\/h2>\n<p>The two importer plugins you&#8217;ve used import the content of your old site to your new one but they don&#8217;t import all the\u00a0settings. This means that you must\u00a0make some manual tweaks before you&#8217;re done.<\/p>\n<p>This might include:<\/p>\n<ul>\n<li>Editing the site title and description.<\/li>\n<li>Making any customizations to the site design you may have made in the Customizer or theme options screens.<\/li>\n<li>Editing any plugin settings. Open both sites in separate windows in your browser (or in separate browsers) and check your settings for your old site, then implement them in your new one.<\/li>\n<li>Checking that it has added the correct navigation menus\u00a0to the correct areas in your theme. The importer plugin copies menus across, but might not have assigned the right one to your primary menu if you&#8217;ve got over one.<\/li>\n<\/ul>\n<p>If you&#8217;ve got a domain\u00a0you want to transfer across from your old site, you also must\u00a0map that\u00a0to the new site in the network. Once you&#8217;ve copied everything across, you must\u00a0edit the DNS for your domain to point it at your network. You must\u00a0also <a href=\"https:\/\/wpmudev.com\/blog\/domain-mapping-wordpress-multisite\/\" target=\"_blank\" rel=\"noopener\">set up Multisite\u00a0Domain Mapping\u00a0properly<\/a> to get things working correctly in your network.<\/p>\n<h2 id=\"easier-than-you-think\">Migrating Into a Network Is Easier Than You Think<\/h2>\n<p>I know from the questions lots of people have asked me about this that the prospect of moving a site into a Multisite network can be scary. But as you now know, it needn&#8217;t be difficult. In fact, bookmark this tutorial so you&#8217;ve got it on hand for the next time you want to migrate a standalone site into Multisite.<\/p>\n<p>By following the instructions above, you can move your site (or your client&#8217;s site) into a Multisite network with minimal hassle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most frequent questions I get\u00a0asked by my students is this: how do you move an existing WordPress site into a Multisite network? This post answers that question and takes you through the steps you need to follow to move a site into a network. In this post, we&#8217;ll look at: Choosing a [&hellip;]<\/p>\n","protected":false},"author":347011,"featured_media":179121,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[11162,10269,9958],"tutorials_categories":[],"class_list":["post-159081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-wordpress-single-site-to-multisite","tag-migration","tag-multisite-2"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/159081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/347011"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=159081"}],"version-history":[{"count":19,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/159081\/revisions"}],"predecessor-version":[{"id":205459,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/159081\/revisions\/205459"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/179121"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=159081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=159081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=159081"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=159081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}