1、Installation “Velvet Blues Update URLs” Plug-in
2、Replace all the old links
and if you familiar with mysql, Direct access to the database Execution SQL:
UPDATE wp_options SET option_value = replace(option_value, ‘oldurl’, ‘newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET post_content = replace(post_content, ‘oldurl’, ‘newurl’);
UPDATE wp_posts SET guid = replace(guid, ‘oldurl’, ‘newurl’);
UPDATE wp_comments SET comment_author_url = replace( comment_author_url, ‘oldurl’, ‘newurl’ ) ;
UPDATE wp_comments SET comment_content = replace( comment_content, ‘oldurl’, ‘newurl’ ) ;
UPDATE wp_posts SET pinged = replace( pinged, ‘oldurl’, ‘newurl’ );