How to Merge Two WordPress Blogs Without Losing SEO Rankings

Last Updated on December 31, 2022 by 16 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How to Merge Two WordPress Blogs Without Losing SEO Rankings
Blog / Tips & Tricks / How to Merge Two WordPress Blogs Without Losing SEO Rankings

There are plenty of reasons why youโ€™d need to merge two WordPress blogs together. For example, one might haveย stalled in growth, or you may have acquired a new website and all of its content. Whatever the reason, you definitely donโ€™t want to lose your Search Engine Optimization (SEO) rankings during this process.

Fortunately, you can merge two WordPress blogs with relative ease. In this article, weโ€™ll first explore why youโ€™d want to merge two blogs, then guide you through the process of doing so in five steps, all without affectingย your SEO rankings.

Letโ€™s get started!

Why You Would Want to Merge Two WordPress Blogs

To put it simply, merging two WordPress blogs involves taking all the content from one and setting it up on another to create one blog. Of course, itโ€™s easier said than done, but itโ€™s actually simpler to implement than youโ€™d imagine.

Combining two blogs together might seem unnecessary, but there areย actually a number ofย benefits, such as:

  1. Reducing your workload. Managing one WordPress blog is easier than two โ€“ you canโ€™t argue with math!
  2. Improving your library of content. In some cases, having one website with an extensive library of content might be preferable than multiple smaller ones (as long as their topics are related, that is).

If youโ€™ve considered doing this in the past but were putting it off for one reason or another, nowโ€™s the perfect timeย to do so. Letโ€™s talk about how to pull it off.

How to Merge Two WordPress Blogs Without Losing SEO Rankings (In 5 Steps)

Naturally, you should back up both of your WordPress sites before moving on โ€“ particularly the one thatโ€™s about to receive your new content. That way, if something goes wrong during the process, you can start againย from the top.

Also, make sure both ofย your sites have an identical permalink structure set up before moving forward. Otherwise, it wonโ€™t be possible to pull off the merger without impacting your SEO rankings.

Finally, throughout these five steps, weโ€™ll refer to your old blog as โ€œBlog Aโ€, and your new blog as โ€œBlog Bโ€ in order to avoid confusion.

Step #1: Export Your WordPress Content as an XML File

WordPress comes with a built-in feature thatย enables you to export all your content โ€“ sans images โ€“ including post, pages, and custom post types. Since weโ€™re merging two sites, weโ€™ll take all of our content along with us.

To do this, head to theย WordPress dashboard of Blog A. Then, go to Tools > Export. Pick the All Content option from theย Choose what to export section, then hit the Download Export File button:

Exporting your WordPress content.

This will trigger the download of an Extensible Markup Language (XML) file. In there, youโ€™ll find a stripped down version of all your content, including its structure. However, as we mentioned earlier, WordPressโ€™ export feature doesnโ€™t handle images by default. Donโ€™t worry, though โ€“ย weโ€™ll tackle that issue later on.

For now, letโ€™s check out what you can do with your new XML file.

Step #2: Import Your WordPress Content to Your New Blog

It should come as no surprise that WordPress also packs an import feature, which is what weโ€™re going to use now. Head to the Tools > Import tab on Blog Bโ€™s dashboard, locate the WordPress option at the very bottom, and click Install Now:

Installing the WordPress importer.

Each importer on this list requires a plugin to work, so sit back for a few moments while WordPress sets it up for you. Once itโ€™s done, the Install Nowย link will be replaced by one readingย Run Importer.

Clicking this link will send you to a new page where youโ€™ll be prompted to upload an XML file to kick off the importing โ€“ or in this case, merging โ€“ process. Chooseย the file you downloaded during step one, and click the blueย Upload file and import button:

Importing an XML file to WordPress.

This process may take a while depending on how much content there is to import. Once itโ€™s ready, youโ€™ll be sent to a new page, which brings us to step number three.

Step #3: Assign Your Imported Content to aย User

At this stage, WordPress will ask you whether you want to keep the original authors for your imported content or replace them. This means you can either assign all of your โ€˜newโ€™ items to an existing user on your site, or create a newย one for the purpose.

Youโ€™ll see the Assign Authors prompt once the import process has finished โ€“ simply pick the option you prefer and type in a new username if necessary:

Assigning authors to your imported content.

If youโ€™d rather keep the original author information for all of your imported content, leave both options blank.

As you may have noticed, thereโ€™s also an option to import your attachments right below the Assign Authors section. This setting is slightly inaccurateย since it doesnโ€™t actually import anything, it just links to the original attachments from your old blog (which is not ideal from an SEO perspective).

For now, check the box next to this setting, then click theย Submit button. Weโ€™ll fix the SEO issue once weโ€™ve merged both blogs.

Step #4: Set Up URL Redirects

Now youโ€™ve successfully imported all of the content from your old blog, itโ€™s time to figure out what to do with it. Leaving it will just take away potential traffic from your new one. However, taking it offline right away isnโ€™t an option either since youโ€™d lose all of the SEO benefits youโ€™ve earned over time. In this case, the best solution is to set up a site-wide redirect so that anyone visiting Blog A will be forwarded to Blog B.

Using your favorite File Transfer Protocol (FTP) client (such as FileZilla), navigate to Blog Aโ€™s root directory, open the .htaccess file, then add the following snippet at the top:

#Options +FollowSymLinks

RewriteEngine on

RewriteRule ^(.*)$ http://www.yournewwordpresssite.com/$1 [R=301,L]

Naturally, the URL in the snippet above is just a placeholder, so youโ€™ll need to replace it with the address of Blog B. When youโ€™re ready, save yourย changes.

Onceย youโ€™ve set up the redirect, all of the people whoย find Blog Aย via search engines will be automatically diverted to Blog B. Over time, the flow of traffic to Blog Aย should die down and when it does, you can pull the plug on it without impacting your SEO.

Step #5: Import Your Images

As we alluded toย earlier, importing your images is a little tougher than importing your content. If youโ€™d rather not have to replace each image manually, keep reading!

First, youโ€™ll need to download all of the media files from Blog Aย viaย FTP. Youโ€™ll find them in theย wp-content/uploads directory.

Next, youโ€™ll need to upload those files to the same directory for Blog B. All thatโ€™s left is to replace the links currently pointing to Blog A. To pull this off, weโ€™ll use the Search and Replace plugin:

The Search and Replace plugin.

Install and activate the plugin, then go to Tools > Search & Replace on Blog Bโ€™s WordPressย dashboard. Find the Search & Replace tab, then take a look at the Search for and Replace with fields. Youโ€™ll want to include the URL of Blog Aย in the former, and Blog Bย in the latter:

Replacing an URL throughout your site.

Doing this will replace all of the instances of Blog Aย in your imported contentโ€™s URLs. That includes images and even internal links, which means you get to kill two birds with one stone.

After filling out both fields, click on the Do Search & Replace button at the bottom of the page,ย and sit back while the plugin does its work. When itโ€™s done, your merger will be officially complete!

What to Do If Your Blogs Donโ€™t Merge Correctly

By now, weโ€™ve covered all of the steps forย pulling off a successful migration. However, each WordPress site is different, and thereโ€™s always a chance that something might go wrong for one reason or another.

First off, if your new site is displaying any large-scale bugs, your best bet might be to restore it to its old state using the backup you made beforehand. However, if youโ€™re just facing a minor error (such as your imported images not displayingย correctly), thereโ€™s no need for a restore. The main issue will likely be a typo thatโ€™s been introduced while using the Search & Replace plugin. To remedy this, you can safely use the plugin toย search your site again and find the error.

Finally, depending on the number of categories and tags on Blog A, you might be left with a bit of a mess on Blog B โ€“ in other words, you may simply either have tooย many posts, or have duplicates to wade through. In this case, itโ€™s a simple process toย merge some of them.

Conclusion

Merging two websites together sounds intimidating, but WordPress makes the process remarkably easy. In fact, itโ€™s the kind of thing that you could pull off in a matter of hours โ€“ meanwhile, your SEO rankings will remain untouched.

In this piece, weโ€™ve shown you how to merge two WordPress blogs, without losing any SEO benefits.ย Letโ€™s quickly recap the steps:

  1. Export your WordPress content as an XML file.
  2. Import your content to your new blog.
  3. Assign the imported content to an author(s).
  4. Set up URL redirects.
  5. Import your images.

Do you have any questions about how to merge two WordPress blogs together? Ask away in the comments section below!

Article thumbnail image by ByEmo / shutterstock.com

Divi

Want To Build Better WordPress Websites? Start Here! ๐Ÿ‘‡

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post

16 Comments

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

    • Thanks Rahul! We’re glad this method worked out for you. ๐Ÿ™‚

  2. John,

    Question. If I wanted to copy the old posts from “Blog A” (old) which has the Custom Structure permalink but the new “Blog B” uses Day and Name, can I change Blog A to the Blog B / Day and Name or should I use a redirect Plug In? I would like to shut down Blog A eventually.

    Thanks!!!

    • Hi Darren! It’s hard for us to say without seeing your exact setup. As long as both sites share the same permalink structure, you should be good to go!

  3. 5 steps…. thank you!!

    This post makes everything so much easier, bookmarked for future reference time and again ๐Ÿ™‚

    Always key to not effect SEO, so thank you for sharing!

    • Youโ€™re welcome, Phil! Weโ€™re glad you found the post so helpful. ๐Ÿ™‚

  4. Thank you for this great tutorial. I have a question: In the .htaccess redirect, do you need to keep /$1 at the end of my blog’s URL? And do I need to add redirects for all my posts & pages as well?

    • You’re welcome, Andrej! You’ll need to replace the placeholder URL, but still append “$1” to it. In a nutshell, this makes sure your posts and pages redirect properly, without any extra steps.

  5. I also imported articles using wordpress too, is very expensive and easier than others. Even if the article had been so, it would be easy if you want to immediately see our article posting just now.

  6. SEO rankings will be down at least for a while. Also the 301 redirect from the old empty domain will not be transferred 100% to the new blog. However the fact that the content will be accessible in the same format/url will be an advantage for SEO continuity.

  7. very much informative Sir…

    • Thanks! ๐Ÿ™‚

    • good..

      • good

  8. Hi John, great post!
    Would it be possible to set the 301 redirect as domain forwarder/redirect in my hosting provider’s dashboard?
    I mean would it give the SEO the same result?

    • Hi Joffry! You’ll have to check with your host about the best way to implement a 301 redirect. You can do so without negatively impacting SEO in the long term, as long as you observe certain best practices. Check out this article for more information: https://moz.com/learn/seo/redirection .

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi