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