make sure in the wp-config.php
$table_prefix = 'wp_'; # the table prefix (eg. here 'wp_' )is same on both old and new
take mysqldump of wordpress databaes from old server and import it into the new server
and make changes to wp-config.php accordingly
In wordpress database
in eg. wp_options table
set the new values accordingly using phpmyadmin of migrating to another domain
siteurl http://example.com
home http://example.com
$table_prefix = 'wp_'; # the table prefix (eg. here 'wp_' )is same on both old and new
take mysqldump of wordpress databaes from old server and import it into the new server
and make changes to wp-config.php accordingly
In wordpress database
in eg. wp_options table
set the new values accordingly using phpmyadmin of migrating to another domain
siteurl http://example.com
home http://example.com
Due to permalinks , object not found error may come. To overcome that select the error item post and mark it as draft and again mark it as post and error will go away
in wp-admin --> posts
select post with error -->
status-- draft (update)
select post with error -->
status-- Published (update)
this error wont come if migration is within same domain name
example.com ---> example.com
but may arise if migration is done from
example.com --> example.org

No comments:
Post a Comment