Why Merge Two WordPress Sites Together?
There could be a lot of reasons for merging two or more WordPress sites together. You may want to start a new WordPress blog by combining your old blogs so that you can have all your content on one location.
Another reason could be that one of your blogs is not doing so well, and you want to merge its content with one of your primary blogs.
Most users merge WordPress sites to spend less time on maintaining a separate WordPress install. Instead of running, marketing, updating and keeping WordPress backups of two or more sites, you can focus on maintaining and growing just one WordPress site.
Exporting Content From Old WordPress Site
Important: Don’t forget to create complete WordPress backup of both your websites. This will come in handy in case anything goes wrong and you want to revert back.
First, you need to visit Tools » Export page inside the admin area of your old WordPress site. This is the site that you want to merge with the newer site.
Make sure that you select ‘All content’ option and then click on ‘Download Export File’ button to continue.
WordPress will now prepare an XML file and send it to your browser. You need to save this file on your computer as you will need it in the next step.
Merging Content on New WordPress Site
That you have exported content from your old site, it is time to merge it with your new WordPress site.Head over to the admin area of the destination site (the site where you want content to be merged) and visit Tools » Import page.
This page lists all the import tools that you can install and run on your WordPress site. Scroll down to the bottom and click on the ‘Install now’ link under WordPress. Once the WordPress importer is installed, you need to click on the ‘Run Importer’ link to continue.
Next, you will be asked to upload the WordPress export file.You need to click on the ‘Choose File’ button and then select the XML file you downloaded earlier.
Click on ‘Upload file and import’ button to continue.WordPress will now upload your export file and analyze it. After that, it will redirect you to import settings page.
You can assign the imported content to an existing user on your WordPress site or create a new author.
Next, check the box under ‘Import Attachments’ option to import media attachments from your old WordPress site.
You can now click on the Submit button to run the final step of the import.
WordPress will now import content from your export file and add it to your new WordPress site. Once finished, you will see a success message.
Setting up Redirects:
After successfully merging content from two WordPress sites, the next step is to setup redirects so that users visiting the old site are automatically redirected to the new WordPress site.You will need to edit the .htaccess file on the old WordPress site.
You need to place this code at top of your .htaccess file.
Don’t forget to replace newsite.com with the domain name of your new WordPress site. Save your changes and upload the file back to your server.
You can now visit any post on your old WordPress site, and you will be automatically redirected to the same post on the new site.