方法一:改数据库,简单粗暴。
1.进后台修改“设置”-“常规”里面的两个域名改为你的新域名。
2.进数据库执行SQL查询,将旧域名“https://www.jikesn.com”替换为“https://www.jikesn.com”。
UPDATE wp_options SET option_value = replace(option_value, 'https://www.jikesn.com/','https://www.jikesn.com/') ;
UPDATE wp_posts SET post_content = replace(post_content, 'https://www.jikesn.com/','https://www.jikesn.com/') ;
UPDATE wp_comments SET comment_content = replace(comment_content, 'https://www.jikesn.com/', 'https://www.jikesn.com/') ;
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, 'https://www.jikesn.com/', 'https://www.jikesn.com/') ;