UPDATE wp_options SET option_value = replace(option_value, ‘site-old.ru’,’site-new.ru’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET guid = replace(guid, ‘site-old.ru’,’site-new.ru’); #Замена всех ссылок, которые находятся в тексте статей
UPDATE wp_posts SET post_content = replace(post_content, ‘site-old.ru’,’site-new.ru’);
UPDATE wp_aioseo_posts SET images = replace(images, ‘site-old.ru’,’site-new.ru’);
UPDATE wp_options SET option_value = replace(option_value, ‘site-old.ru’,’site-new.ru’);
UPDATE wp_postmeta SET meta_value = replace(meta_value, ‘site-old.ru’,’site-new.ru’);