您必须更改数据库中的URL:在phpmyadmin中使用以下查询:
UPDATE wp_options SET option_value = replace(option_value, \'http://www.olddomain.com/\', \'http://www.newdomain.com/\') WHERE option_name = \'home\' OR option_name = \'siteurl\';
UPDATE wp_posts SET guid = replace(guid, \'http://www.olddomain.com/blog/\',\'http://www.newdomain.com/\');
UPDATE wp_posts SET post_content = replace(post_content, \'http://www.olddomain.com/blog/\', \'http://www.newdomain.com/\');
UPDATE wp_postmeta SET meta_value = replace(meta_value, \'http://www.olddomain.com/blog/\', \'http://www.newdomain.com/\');
并检查主题文件中是否有硬编码的URL。看见
Moving WordPress « WordPress Codex 和
How to Move WordPress Blog to New Domain or Location » My Digital Life