Created
October 7, 2014 12:45
-
-
Save enru/387e821f6da91c2cfe8f to your computer and use it in GitHub Desktop.
wp site url update
This file contains hidden or 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_posts SET post_content = replace(post_content, 'http://ONE', 'http://TWO'); | |
| UPDATE wp_posts SET guid = replace(guid, 'http://ONE', 'http://TWO'); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://ONE', 'http://TWO'); | |
| UPDATE wp_options SET option_value = 'http://TWO' WHERE option_name = 'siteurl'; | |
| UPDATE wp_options SET option_value = 'http://TWO' WHERE option_name = 'home'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment