Answers for "migrate wordpress to localhost"

0

migrate wordpress to localhost

UPDATE wp_options SET option_value = replace(option_value, 'https://www.example.com', 'http://localhost/mylocalsite') WHERE option_name = 'home' OR option_name = 'siteurl';
  
UPDATE wp_posts SET post_content = replace(post_content, 'https://www.example.com', 'http://localhost/mylocalsite');
  
UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://www.example.com','hhttp://localhost/mylocalsite');
Posted by: Guest on February-04-2021

Code answers related to "migrate wordpress to localhost"

Browse Popular Code Answers by Language