PDA

View Full Version : How to merge two Wordpress blogs? Move posts from one wordpress to another



Fli
09-06-2016, 10:34 PM
I wanted to let expire domain name of my Wordpress and move its posts to my other Wordpress blog located on another domain (sub-domain actualy).

Here is how i did that.

1. login your wordpress where you have post that you want to move away, click Tools, Export and save export.
2. login your wordpress where posts should be imported. Go to the Tools, Import and do the import

In case you are missing import/export functionality, WP shold invite you to install plugin https://wordpress.org/plugins/wordpress-importer/

3. Redirect your old/leaving blog to the new blog, so you prevent duplicity in Google. Open hosting control panel and go to File Manager (or use FTP) and edit .htaccess file in your site root directory (www, public_html) in same directory should be file index.php.

Your .htaccess should contain this:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.tld$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.tld$
RewriteRule (.*)$ http://newdomain.tld/$1 [R=301,L]
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

offcourse update olddomain.tld and newdomain.tld to match your domains. you can use subdomains too there.

One can also use this more simple redirect instead:

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

Redirection will work properly only if both Wordpresses have same link structure (Wordpress/Settings/Permalinks)

I had it same and all posts properly redirecting to a new domain.

Waninet
09-16-2016, 09:58 AM
Hello! I can recommend you to look at MonsterPost blog at http://www.templatemonster.com/blog/why-use-wordpress-for-my-website/. There are so many useful posts with different guides on Wordpress, you will surely find the solution there

kumkum
08-21-2021, 02:47 PM
We can easily import wordpress post and you will get this option in wordpress or you can also use wordpress plugin to import posts.
You can import pages and posts between two wordpress websites (https://hoststud.com/resources/importing-pages-and-posts-between-wordpress-websites.453/).