Advertisement
krzxsiek

Zastepowanie HTTP na HTTPS

Nov 7th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.41 KB | None | 0 0
  1. UPDATE wp_options SET option_value = REPLACE(option_value, 'http://oldurl', 'https://newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
  2.  
  3. UPDATE wp_posts SET guid = REPLACE(guid, 'http://oldurl','https://newurl');
  4.  
  5. UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://oldurl', 'https://newurl');
  6.  
  7. UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,'http://oldurl','https://newurl');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement