Skip to content

Instantly share code, notes, and snippets.

@michaelgiles
Created October 23, 2016 02:29
Show Gist options
  • Save michaelgiles/55e20339ecbc97bf3e5b59cfd99cb539 to your computer and use it in GitHub Desktop.
Save michaelgiles/55e20339ecbc97bf3e5b59cfd99cb539 to your computer and use it in GitHub Desktop.
Wordpress - Replace site and home url
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