Skip to content

Instantly share code, notes, and snippets.

@squiter
Created April 3, 2012 12:19
Show Gist options
  • Save squiter/2291538 to your computer and use it in GitHub Desktop.
Save squiter/2291538 to your computer and use it in GitHub Desktop.
Mudando a URL do Wordpress
UPDATE wp_options SET option_value = replace(option_value, 'http://__www.old-site.com__', 'http://__www.new-site.com__') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://__www.old-site.com__','http://__www.new-site.com__');
UPDATE wp_posts SET post_content = replace(post_content, 'http://__www.old-site.com__', 'http://__www.new-site.com__');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment