http://www.old-domain.com/ to http://www.new-domain.com/
http://www.domain.com/ to http://www.domain.com/blog/
http://www.domain.com/ to http://www.new-domain.com/blog/
Example for first case:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
Browse through WordPress blog to check if everything is okay. You also need to re-login to WP Administration as authentication cookie has now became invalid due to different domain.
Title:
How to Move WordPress Blog to New Domain or Location
Description:
http://www.old-domain.com/ to http://www.new-domain.com/ http://www.domain.com/ to http://www.domain.com/blog/ http://www.domain.com/ to h...
...
Rating:
4