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:
- Reducing your workload. Managing one WordPress blog is easier than two โ you canโt argue with math!
- 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:
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:
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:
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:
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:
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:
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:
- Export your WordPress content as an XML file.
- Import your content to your new blog.
- Assign the imported content to an author(s).
- Set up URL redirects.
- 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
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. ๐
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!
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. ๐
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.
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.
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.
very much informative Sir…
Thanks! ๐
good..
good
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 .