Last active
August 29, 2016 09:49
-
-
Save yoavmatchulsky/fadcda0e5996171e56788b7928f9e0e6 to your computer and use it in GitHub Desktop.
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
-- Change all http:// references to https:// | |
UPDATE wp_posts SET post_content=REPLACE(post_content, 'http://', 'https://'); | |
-- Change site's url and homepage | |
UPDATE wp_options SET option_value=REPLACE(option_value, 'http://', 'https://') WHERE option_name IN ('siteurl', 'home'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment