Skip to content

Instantly share code, notes, and snippets.

@mmilosheski
Created May 3, 2017 20:24
Show Gist options
  • Save mmilosheski/c4f4cbaaa138679661f7a89de3960ca8 to your computer and use it in GitHub Desktop.
Save mmilosheski/c4f4cbaaa138679661f7a89de3960ca8 to your computer and use it in GitHub Desktop.
UPDATE wp_options SET option_value = replace(option_value, 'http://sezavino.mk', 'https://sezavino.mk') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://ivankarangelova.com','https://sezavino.mk');
UPDATE wp_posts SET post_content = replace(post_content, 'http://ivankarangelova.com', 'https://sezavino.mk');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://ivankarangelova.com','https://sezavino.mk');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment