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


/ Published in: SQL
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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' ) ;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.