Last active
August 9, 2019 11:56
-
-
Save sueleybyte/ee1cf8c7edd87c83e4e01bb30a8ee22c to your computer and use it in GitHub Desktop.
Update Wordpress HTTP to HTTPS
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
-- Options | |
UPDATE wp_options SET option_value = REPLACE(option_value, "http", "https") WHERE option_name = "siteurl" OR option_name = "home" AND option_value NOT LIKE "https%"; | |
-- Posts | |
UPDATE wp_posts SET guid = REPLACE(guid, "http", "https") WHERE guid NOT LIKE "https%"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment