Created
October 23, 2016 02:29
-
-
Save michaelgiles/55e20339ecbc97bf3e5b59cfd99cb539 to your computer and use it in GitHub Desktop.
Wordpress - Replace site and home url
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_options SET option_value = replace(option_value, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment