是否使用SQL语言在phpMyAdmin中更改URL:
# Change website url
UPDATE wp_options
SET option_value = replace(option_value, \'http://www.old-site.com\',\'http://www.new-site.com\') WHERE option_name = \'home\' OR option_name = \'siteurl\';
# Change GUID URL
UPDATE wp_posts SET guid = REPLACE (guid, \'http://www.old-site.com\',\'http://www.new-site.com\');
# Change url of medias, post, page, etc.
UPDATE wp_posts SET post_content = REPLACE (post_content, \'http://www.old-site.com\',\'http://www.new-site.com\');
# Change meta data url
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, \'http://www.old-site.com\',\'http://www.new-site.com\');