Executa aquestes consultes en la pestanya “SQL” de PHPMYADIN, previa còpia de seguretat.
Recorda canviar el prefixe “wp_” si és una altre.
UPDATE wp_options SET option_value = replace(option_value, 'http://www.antigua-url.com', 'http://www.nueva-url.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.antigua-url.com', 'http://www.nueva-url.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.antigua-url.com','http://www.nueva-url.com');
UPDATE wp_comments SET comment_content = replace(comment_content , 'http://www.antigua-url.com','http://www.nueva-url.com');
UPDATE wp_comments SET comment_author_url = replace(comment_author_url , 'http://www.antigua-url.com','http://www.nueva-url.com');
UPDATE wp_posts SET guid = replace(guid, 'http://www.antigua-url.com','http://www.nueva-url.com') WHERE post_type = 'attachment';
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.antigua-url.com','http://www.nueva-url.com') WHERE meta_key = '_wp_attached_file';
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.antigua-url.com','http://www.nueva-url.com') WHERE meta_key = '_wp_attachment_backup_sizes';