WordPress修改域名或端口后无法正常访问问题

WordPress会把链接信息和文章写入数据库,就会发生修改了安全组,修改了监听端口,还是无法访问网站的现象,本地使用curl命令会发现跳转到原来的域名和端口。

修改之前

修改之后

#说明
use wordpress;
#执行以下语句
#UPDATE wp_posts SET post_content = replace( post_content, '原地址', '新地址' );
UPDATE wp_posts SET post_content = replace( post_content, '47.97.126.8:35331', 'www.b-ing.vip' );
UPDATE wp_options SET option_value = replace(option_value, '47.97.126.8:35331','www.b-ing.vip');
UPDATE wp_posts SET post_content = replace(post_content, '47.97.126.8:35331','www.b-ing.vip');
UPDATE wp_comments SET comment_content = replace(comment_content, '47.97.126.8:35331', 'www.b-ing.vip');
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, '47.97.126.8:35331', 'www.b-ing.vip');
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注