Recently, one of our users asked us how to merge two WordPress websites together without losing SEO? Sometimes you may create multiple WordPress sites, but later require to merge them together. WordPress comes with built-in tools to easily practice this. In this article, we will prove you how to properly merge two WordPress websites together.
How to Merge Two WordPress Websites Together
Why Merge Two WordPress Websites Together?
There could be a good deal of reasons for merging two or more WordPress websites together.
You only want to start a new WordPress blog by combining your old blogs so that you can have all your old content in one location.
Another reason could be that one of your blogs is not doing so good, and you want to merge its content with one of your primary blogs.
Most of the users merge WordPress sites to spend less time on defending a separate WordPress install.
Instead of running, marketing, updating and keeping WordPress backups of two or more sites, you can focus on maintaining and getting just one WordPress site.
Let’s take a look at how to easily merge WordPress sites together.
1- Exporting Content From Old WordPress Site To New One
For the sake of this example, we will suppose that you have an old WordPress site at http://oldsite.com and you want to merge it with the new one, http://newsite.com/.
Important Tip: Don’t forget to create a complete WordPress backup of both your websites.
This will come in handy in case anything goes wrong and you want to revert back to original one.
The first thing, you need to visit Tools » Export page in the dashboard area of your old WordPress site.
This is the website that you want to merge with the new site.
Make sure that you select ‘All content’ option and then click on ‘Download Export File’ button to move next.
WordPress will now prepare an XML downloadable file and save it to your browser.
You only need to save this file on your computer as you will need it in the next step.
This XML file will contain the following:
- All WordPress posts and pages.
- All custom post types.
- All categories and tags and custom taxonomies.
2- Merging Content on New WordPress Site
Now that, you have exported content from your old site, it is time to merge it with your new WordPress website.
Move forward to the dashboard area of the destination website (the site where you want the content to be merged) and now visit Tools » Import page.
This import page lists all the import tools that you can install and run on your WordPress website.
Move down to the bottom of the page and click on the ‘Install now’ link under WordPress.
Once the WordPress importer is installed successfully, you only need to click on the ‘Run Importer’ link button to proceed further.
The next step is, you will be asked to upload the WordPress XML export file.
You need to click on the ‘Choose File’ link button and then select the XML file you downloaded earlier.
Now, Click on ‘Upload file and import’ button to proceed to the next step.
WordPress will now upload your export file automatically and analyze it.
After all that, it will now redirect you to import settings page.
It will need you to assign authors or create a new author here.
You can assign the imported content to an existing user on your WordPress website or create a new author.
The next step is, mark off the box under ‘Import Attachments’ option to import media attachments from your old WordPress site.
You can directly click on the Submit button to run the final step of the import.
WordPress will now import all content from your export file and add it to your new WordPress website.
Once the import is finished, you will see a success message.
3- Setting up Redirects On WordPress
After successfully merging content from old WordPress site to the new one, the next step is to set up redirects URLs so that users visiting the previous website are automatically redirected to the new WordPress site of yours.
You need to edit the .htaccess file on the old WordPress site.
You can edit your .htaccess file by connecting to your WordPress site using an FTP client or by using the File Manager tool in your WordPress hosting cPanel.
The “.htaccess file” is located in the File Manager » Root folder of your website.
Now, You need to put this code at the top of your .htaccess file.
#Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]
Important: Don’t forget to replace “newsite.com” with the original domain name of your new WordPress website.
After that, Save your modifications and upload the file back to your web server.
You can now directly visit any post on your old WordPress site, and you will be automatically redirected to the same post on the new site.
We hope this article helped you merge two WordPress sites together without losing SEO. You may also want to see our step by step WordPress guide for beginners.
I’m wishing you the best of luck!
Get started on WordPress today and start turning your spare time into spare cash.
Don’t forget to share this article with your friends.
Best of luck and have a great flight!