Merging two WordPress blogs

Posted on Jan 1, 2009 in Blogging
In some cases you perhaps want to merge two WordPress blogs. You either have two blogs which you want to merge (careful, don’t even think about doing so if they are not about the  same niche) or you want to merge your blog with a friend’s blog to work together. Mark and me did the same and merged Donkey- and Ownblogger and now both work on DuoBlogger. I will first explain the benefits and then come to the problems and how you can solve them.Reasons for merging your blog In our case Mark is the blogging expert and I am more into advertising and promoting your blog. -You can specialize on your knowledge, but still have related and other interesting content. That way you are able to ensure that your readers will never get bored and will always enjoy exclusive content. -You can split your work. If you previously had to manage wordpress, design and promoting you can now divide the work depending on your skills. That is very good especially if one of you is more a designer and the other one more a coder (design and coding usually goes wrong. Look at the Gnome Desktop. Linuz Torvald read the designer’s code and said “Hmm, they must be code nazis”.). Look at both of your strengths and then see whether splitting could help improving your website. The splitting of course also applies to writing content, but don’t reduce the amount of writing, still keep publishing like you did before. -You enjoy the benefit of more content. When you merge your wordpress blogs your are of course also merging your visitors. The visitors will enjoy the higher specialized content of the same niche. Happier visitors means of course more subscribers and more subscribers mean more money for you. -You are not alone with problems. Ask yourself how often you have already had problems with your website which you were not able to solve that easily? With two people working together you enjoy the benefit of two brains . It’s like a Dual-Core processor – both of you can either work on one issue or divide the tasks.Less money – a common misconception You are merging your blogs which also means that you are merging your visitors. If  both of you were earning 100$ each every month then you will now earn 200$. Assuming that you are splitting your earnings equally you will each still have 100$. Money should not be the reason for being hesitant with merging the blogs.Before merging your blog Make sure that both of you really want to do so. I can only recommend to do so if both of you are friends and trust each other. Not trusting each other is definitely not a good base for a business together. I am pretty sure that users will notice quickly that you are not trusting each other. Not trusting each other means that your writtten content will most likely be bad as well and users notice that. At least that when someone recommends me to start clicking on my ads for higher earnings.Merging your two wordpress blogs If all pre-checks and thoughts went fine then get ready to start the merging process. Please make sure to read the following guide fully once and then proceed with the merging process. You need: Access to all WordPress Admin menus, access to phpMyAdmin and the FoxReplace addon. For simplicity I am using Blog A and Blog B as names for my old blogs and Blog C for my new blog.
phpMyAdmin Mass Edit

phpMyAdmin Mass Edit

-Install a fresh copy of wordpress on Blog C and get a maintenance plugin so that google won’t index anything it is not supposed to. -Export wordpress using the WordPress export feature on both of your blogs. You  should have two .xml files. -Go into the wordpress settings on Blog C and import both .xml files after each other. -It should ask you to whether you want to download the images from the old Blogs. Say yes. -Blog C should now have all posts from Blog A and B. -Open phpMyAdmin and search for the sitename of Blog A. It should find some results – replace all of them with the name of Blog C. Do the same with Blog A. -Do the same for the URL of Blog A and B. -I recommend you to use phpMyAdmin’s mass edit feature (tick all boxes and click edit in the action menu – see screenshot). Then Open the Replace any menu and replace Site URL and name of A (next step B) with site name and URL of C. That will save you a lot of time. It could take a while until FoxReplace completes – don’t kill your firefox, just be patient – get a coke. For me it took almost a minute. -Congrats, you should now have fully merged your blogs.The final step of the merging process is the most important one. You now have site C which has al the content of Site A and B. If google will index site C it will notice that it has the same content. What happens? BAM you get banned. To avoid doing so we activated the maintenance plugin. We will need to tell Google that site A and B moved to site C. To do so we are using an handy feature of the Apache web server (if your old sites are not hosted on an Apache server then the following stepps will not work, but the idea is still the same. If you aren’t allowed to use .htaccess files together with the apache ModRewrite module then you can also forward using a 301 meta redirect. If you aren’t running on Apache and don’t have access to .htaccess files then make sure to ask your next hoster for that.
Migrating old Permalinks

Migrating old Permalinks

-Open your favorite FTP program (filezilla portable in my case) and open site A and B. You should notice an .htaccess file in the wordpress root directory. -Open the .htaccess file and replace everything with the following:

RewriteEngine on RewriteCond %{HTTP_HOST} ^oldurl$ [NC] RewriteRule ^(.*) newurl/$1 [L,R=301]-Replace oldurl with the URL of A (and B of course on B’s server) and newurl with the URL of your new blog. Example: oldurl: http://www.donkeyblogger.comnewurl: http://www.duoblogger.com -Open an old URL on your blog (google your site and then see the cache) you should be forwarded to your new blog almost instantly. -If you were using different Permalinks on wordpress blog A and B then you will need to use the Permalinks migration plugin to make sure that your visitors will be forwarded to the proper URLs on C. Install the plugin on C and enter the old permalink rule from either A or B (depending on which permalink rule you do not want to keep)Voilá you now have merged your blogs :-). There might be some other little tweaks but they depend on your wordpress configuration. Happy blogging and don’t forget to subscribe to DuoBlogger and to let me know incase you had any problems.