这些参数和管理设置会更改数据库中的URL。唯一的其他方法是在phpmyadmin中的DB上运行SQL查询来更改它们:
UPDATE wp_options SET option_value = replace(option_value, \'http://olddomain.com\', \'http://newdomain.com\') WHERE option_name = \'home\' OR option_name = \'siteurl\';
UPDATE wp_posts SET guid = replace(guid, \'http://olddomain.com\',\'http://newdomain.com\');
UPDATE wp_posts SET post_content = replace(post_content, \'http://olddomain.com\', \'http://newdomain.com\');
UPDATE wp_postmeta SET meta_value = replace(meta_value, \'http://olddomain.com\', \'http://newdomain.com\');
Update 1/16/2015: it\'s much better to use a script that deals with serialized data, such as interconnectit.com WordPress Serialized PHP Search Replace Tool