savchukoleksii
10/23/2018 - 9:41 AM

Wordpress replace old urls

UPDATE wp_options SET option_value = replace(option_value, 'http://althea.loc', 'https://ams.fst.aws3.net') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://althea.loc','https://ams.fst.aws3.net');
UPDATE wp_posts SET post_content = replace(post_content, 'http://althea.loc', 'https://ams.fst.aws3.net');
UPDATE wp_posts SET post_excerpt = replace(post_excerpt, 'http://althea.loc', 'https://ams.fst.aws3.net');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://althea.loc', 'https://ams.fst.aws3.net');