WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:Hakre/Wordpress-Migration

Back to my Page

 define('WP_HOME','http://newsite');
 define('WP_SITEURL','http://newsite');
 define('RELOCATE',true);
 UPDATE wp_posts SET guid = REPLACE (guid, 'http://oldsite', 'http://newsite');
 UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://oldsite', 'http://newsite');
 UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://oldsite', 'http://newsite');

What's missing?

Go through all options, load serialized values, replace in there, save again. If you do, do it before the SQL replace commandos.

See Also