Return to Snippet

Revision: 25745
at April 7, 2010 18:58 by peterbelsky


Initial Code
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');

Initial URL
http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/

Initial Description

                                

Initial Title
UPDATE URLS FOR WORDPRESS

Initial Tags

                                

Initial Language
SQL