Skip to content

Instantly share code, notes, and snippets.

@ellegaarddk

ellegaarddk/URL_change.sql

Last active Apr 22, 2018
Embed
What would you like to do?
Skift af URL til https
##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');
@ellegaarddk

This comment has been minimized.

Copy link
Owner Author

@ellegaarddk ellegaarddk commented Feb 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.