Last active
April 22, 2018 12:58
-
-
Save ellegaarddk/25e57b592b80467da0f9deb3ba82bb00 to your computer and use it in GitHub Desktop.
Skift af URL til 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
##Ret prefix og domæner!!!! | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://domain.dk', 'https://domain.dk'); | |
UPDATE wp_posts SET guid = REPLACE (guid, 'http://domain.dk', 'https://domain.dk') WHERE post_type = 'attachment'; | |
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, 'http://domain.dk', 'https://domain.dk'); | |
UPDATE wp_comments SET comment_content = replace(comment_content, 'http://domain.dk', 'https://domain.dk'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test med:
https://www.ssllabs.com/ssltest