Skip to content

Instantly share code, notes, and snippets.

@stormsson
Last active August 29, 2015 14:14
Show Gist options
  • Save stormsson/96ae55a8b0d6771ec93b to your computer and use it in GitHub Desktop.
Save stormsson/96ae55a8b0d6771ec93b to your computer and use it in GitHub Desktop.
Wordpress Sostituzione dominio
update wp_options set option_value = REPLACE(option_value,'www.old_site.com','www.new_site.com');
update wp_postmeta set meta_value = REPLACE(meta_value,'www.old_site.com','www.new_site.com');
update wp_posts set guid = REPLACE(guid,'www.old_site.com','www.new_site.com'), post_content = REPLACE(post_content,'www.old_site.com','www.new_site.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment