Posted By

peterbelsky on 04/07/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

maxvee8


UPDATE URLS FOR WORDPRESS


 / Published in: SQL
 

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

  1. 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';
  2.  
  3. UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.old-domain.com','http://www.new-domain.com');
  4.  
  5. UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Report this snippet  

You need to login to post a comment.