Last active
August 29, 2015 14:14
-
-
Save stormsson/96ae55a8b0d6771ec93b to your computer and use it in GitHub Desktop.
Wordpress Sostituzione dominio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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