Autor Subiect: Mutare wordpress de pe http pe https prin cli sql  (Citit de 669 ori)

Admin

  • Administrator
  • guru
  • *****
  • Mesaje postate: 56
  • Karma: +0/-0
Mutare wordpress de pe http pe https prin cli sql
« : Iunie 08, 2020, 09:32:19 a.m. »
UPDATE wp_options SET option_value = replace(option_value, 'http://example.com', 'https://example.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = REPLACE (guid, 'http://example.com', 'https://example.com');
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://example.com', 'https://example.com');
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://example.com','https://example.com');