Posted By

catswhocode on 08/19/17


Tagged

sql wordpress


Versions (?)

SQL queries to change http to https in WordPress posts/pages


 / Published in: SQL
 

URL: https://www.catswhocode.com/blog/install-https-wordpress

More info: https://www.catswhocode.com/blog/install-https-wordpress

  1. UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://yoursite.com', 'https://yoursite.com' ) ;
  2. UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.yoursite.com', 'https://www.yoursite.com' ) ;

Report this snippet  

You need to login to post a comment.