进入后台 phpMyAdmin 执行 SQL 语句

UPDATE wp_options SET option_value = replace( option_value, 'http://xinghaizhongxin.com', 'http://xinghaizhongxin.guofeng.io' ) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace( post_content, 'http://xinghaizhongxin.com', 'http://xinghaizhongxin.guofeng.io' ) ;
UPDATE wp_posts SET guid = replace( guid, 'http://xinghaizhongxin.com', 'http://xinghaizhongxin.guofeng.io' ) ;

或进入主题 function.php 添加

update_option('siteurl','http://xinghaizhongxin.guofeng.io');
update_option('home','http://xinghaizhongxin.guofeng.io');

然后进入后台设置-常规, 修改域名

发表评论

Close Menu