WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
  • Deals
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Beginners Guide» How to Merge Two WordPress Sites Together Without Losing SEO

How to Merge Two WordPress Sites Together Without Losing SEO

Last updated on February 7th, 2017 by Editorial Staff
602 Shares
Share
Tweet
Share
Special WordPress Hosting offer for WPBeginner Readers
How to Merge Two WordPress Sites Together Without Losing SEO

Recently, one of our readers asked us how to merge two WordPress sites together? Sometimes you may create multiple WordPress sites but later want to merge them together. WordPress comes with built-in tools to easily do this. In this article, we will show you how to properly merge two WordPress sites together.

How to merge two WordPress sites together

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.

Let’s take a look at how to easily merge WordPress sites together.

Exporting Content From Old WordPress Site

For the sake of this example, we will say that you have a WordPress site at http://oldsite.com and you want to merge it with http://newsite.com/.

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.

Export content from your old WordPress 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.

This file will contain the following:

  • All your WordPress posts and pages
  • All custom post types (if you have any)
  • All categories and tags and custom taxonomies (if you have any).

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 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.

Install WordPress importer

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.

Run WordPress importer

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.

Upload WordPress import file

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.

WordPress import settings

It will ask you to assign authors or create new authors.

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.

WordPress import finished

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 can edit the .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 root folder of your website. If you can’t find it, then see our guide on why you can’t find .htaccess file on your WordPress site to unhide it.

You need to place this code at top of your .htaccess file.

#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

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.

Troubleshooting After Merging Two WordPress Sites

How to merge and bulk edit categories and tags?

You may want to clean up categories and tags after merging two WordPress sites. For detailed instructions, check out our tutorial on how to merge and bulk edit categories in tags in WordPress.

How to import missing images?

For that you will have to temporarily disable redirect by editing .htaccess file and removing the code you added earlier. After that you can follow the instructions in our guide on how to import external images in WordPress.

Don’t forget to setup redirects again after importing your images.

Fix URLs pointing to old domain in posts and pages

All internal links in imported posts and pages will still be pointing to your old site. Since you have redirects setup, your users will still land on the correct post on your new site.

However, you still need to update URLs for improved SEO and better user experience. For step by step instructions, see our tutorial on how to update URLs when moving your WordPress site.

We hope this article helped you merge two WordPress sites together. You may also want to see our step by step WordPress SEO guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

602 Shares
Share
Tweet
Share
Popular on WPBeginner Right Now!
  • Step by Step Guide: How to Start a Podcast with WordPress

    How to Start Your Own Podcast (Step by Step)

  • Why Build Your Email List Today

    Revealed: Why Building Your Email List is so Important Today!

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

The Ultimate WordPress Toolkit

22 Comments

Leave a Reply
  1. Steve says:
    Mar 7, 2018 at 8:53 pm

    I have oldsite.org which has a blog in the root and 2 more blogs at /nytips/ and /nynews/ and a community at /nyforum/ and want to make /nytips/ and /nynews/ a category of the blog in the root so the search box will work for the entire site plus giving me the chance to maintain one blog and one forum. Will this article help or will I have to use oldsite.net first then move it back to oldsite.org?

    Each folder was a domain which I consolidated 5+ years as I did not want to buy SSL certs for each domain and their aliases.

    Reply
  2. Edmond Chan says:
    Mar 2, 2018 at 8:17 am

    Hi team, thanks very much for this info. I edited my .htaaccess file in my old wordpress site to redirect to the new site. I used the code in the article above. However, I’m not able to access oldsite.com/wp-admin anymore as it redirects to newsite.com/wp-admin! Is there anyway to still access the old site’s admin dashboard to update plugins, wordpress itself or for any other reasons? Many thanks, Ed

    Reply
    • WPBeginner Support says:
      Mar 5, 2018 at 9:44 am

      Hi Edmond,

      You will need to remove the .htaccess redirect to access old site admin area.

      Reply
      • Edmond Chan says:
        Mar 5, 2018 at 12:44 pm

        Hi Team,

        Thanks very much for your reply. The problem is that because the old site admin area immediately redirects to the new site’s admin area, I literally can’t access the old site’s .htaccess file in order to edit/remove the redirect. It’s chicken and egg! Is there any way to fix this?? Many thanks, Ed

        Reply
        • WPBeginner Support says:
          Mar 6, 2018 at 7:17 pm

          Hi Edmond,

          You can use FTP to edit .htaccess file.

  3. ranga says:
    Dec 13, 2017 at 10:15 pm

    Hi!
    We moved our content from siteA to siteB both of which use wordpress CMS. After merging the content do we need to change the address in google websmaster tools.? Thanks.

    Reply
  4. Ilyas says:
    Dec 3, 2017 at 12:43 pm

    I have merged my websites and all of the posts are on my new website.
    But When I search an article, still the url and name of my old website my old website appear on the search engine.
    What if I delete my old website or if it expires?

    Reply
    • Alan says:
      Dec 3, 2017 at 8:20 pm

      The best thing is to set redirects up from your old website to your new website and never let it expire.

      Reply
  5. John says:
    Nov 22, 2017 at 10:30 am

    Thanks for an interesting and useful article.
    I am in process of merging three websites with my older and larger main site. I’ve been doing this manually and it’s taking ages. I didn’t realise it was possible to do it automatically. HOWEVER, one issue I’m facing doesn’t seem to be covered in your article. If I choose “all content” when I export from one site, will that include the comments the posts have attracted? If not, how to export/import comments?
    Many thanks,
    John

    Reply
    • WPBeginner Support says:
      Nov 22, 2017 at 1:51 pm

      Hi John,

      Yes, comments will included in the export file.

      Reply
  6. Jack says:
    Apr 26, 2017 at 1:11 pm

    Would it be ok to redirect single blog posts one by one over a time periode of one year.

    E.g. Every week two blog posts from one blog (the one fizzling out) are republished to the main focus blog. And 2 redirects are done every week for a year.
    This process goes on until all are moved to main blog (say 100 posts over a year). Would that be a bad idea in teems of SEO?

    Reply
  7. Chris says:
    Mar 20, 2017 at 5:51 am

    Hi Folks,

    With a merge, what’s the situation about page/post IDs? If we are dealing with bigish sites surely there is a chance the page ID will be duplicated on import? Will that cause problems, and if so how to avoid/fix it?

    Cheers,
    Chris

    Reply
    • Jack says:
      Apr 25, 2017 at 3:30 pm

      Would it be ok to redirect single blog posts one by one over a time periode of one year.

      E.g. Every week two blog posts from one blog (the one fizzling out) are republished to the main focus blog. And 2 redirects are done every week for a year.
      This process goes on until all are moved to main blog (say 100 posts over a year). Would that be a bad idea in teems of SEO?

      Reply
  8. Gemma says:
    Feb 15, 2017 at 1:18 am

    Hi,

    I’m curious to know, when importing the OLD site into the NEW, will it adopt the theme settings of the NEW site automatically?
    How can I make sure they match?

    Thanks

    Reply
  9. Melissa says:
    Feb 12, 2017 at 3:27 am

    How long before you could delete the original WP site?

    Reply
    • WPBeginner Support says:
      Feb 12, 2017 at 3:59 pm

      Once you are satisfied that the old site is no longer getting any traffic, you can delete it. However, if the original site is still getting significant traffic from sources other than search engines, then you may want to keep the domain up as long as possible.

      Reply
  10. Karakaplan says:
    Feb 8, 2017 at 4:52 am

    How long should keep Redirect htaccess file in old server?

    Reply
  11. Alan says:
    Feb 7, 2017 at 10:40 pm

    I’d like to import one websites posts into a particular category or custom post type. Then a different redirect will be needed. Can you make a tutorial fo that?

    Reply
  12. Valentine says:
    Feb 7, 2017 at 12:57 pm

    Thanks for this information. I’ve successfully merged my two sites and they are working properly from one dashboard. Nice Job

    Reply
    • WPBeginner Support says:
      Feb 7, 2017 at 9:30 pm

      Glad you found it helpful :) don’t forget to follow us on Facebook for more WordPress tips and tutorials.

      Reply
  13. Georgina Moon says:
    Feb 7, 2017 at 12:21 pm

    This is interesting and helpful. But I have the opposite question – I want to start a new WordPress blog, and export only certain posts to the new blog (e.g., all my posts with certain tags or categories, such as Greece, sailing etc). I have laboriously been copying and pasting, but I have to add the photos again, plus tags and categories. Is there a quicker way, please?

    Reply
    • WPBeginner Support says:
      Feb 7, 2017 at 10:50 pm

      Hi Georgina,

      Yes, you can do this here is how.

      First create a new category in WordPress, you can all it anything you want.

      Next, you need to go to Posts -> All Posts screen. Click on screen options button at the top right corner. Under ‘Number of items to show per page’ enter a number larger than total number of posts on your site then click on Apply button.

      WordPress will now load all your posts on the same page. Check the box next to the posts you want to move. Then select ‘Edit’ from ‘Bulk Options’ drop down menu and click on the Apply button.

      A box will appear with a number of options. Simply select the category you created earlier to file all selected posts under that category. Click on update button to save your changes.

      Now you can go to Tools -> Export page. Select posts and then under export settings select the category that has all the posts you want to move.

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 600,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
OptinMonster
OptinMonster
Convert website visitors into email subscribers. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2018 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2018)
    • Which is the Best WordPress Slider? Performance + Quality Compared
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • 5 Best VPN Services for WordPress Users (Compared)
    • HostGator Review - An Honest Look at Speed & Uptime (2018)
    • SiteGround Reviews from 1032 Users & Our Experts (2018)
    • Bluehost Review from Real Users + Performance Stats (2018)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Start a Podcast with WordPress (Step by Step)
    • How to Choose the Best Domain Name (8 Tips and Tools)
    • How to Setup a Professional Email Address with Google Apps and Gmail
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2018 – Step by Step Guide
Deals & Coupons (view all)
MaxCDN
MaxCDN Coupon
Get 25% off MaxCDN, the same service that we use to make our site super fast.
WPForms Logo
WPForms Coupon
Get 10% off WPForms, the most beginner friendly WordPress contact form plugin available in the market.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • List25
  • Awesome Motive
  •  

Copyright © 2009 - 2018 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.