更换wordpress 域名

1. 更改wp-config.php里面的域名

2. 修改数据库里面的内容

UPDATE wp_options SET option_value = replace(option_value, ‘old_domain’,'new_domain’) ;

UPDATE wp_posts SET post_content = replace(post_content, ‘old_domain’,'new_domain’) ;

UPDATE wp_posts SET guid = replace(guid, ‘old_domain’,'new_domain’) ;

UPDATE wp_comments SET comment_content = replace(comment_content, ‘old_domain’,'new_domain’) ;

UPDATE wp_comments SET comment_author_url = replace(comment_author_url, ‘old_domain’,'new_domain’) ;



This entry was posted on 2019 年 05 月 15 日 and is filed under IT DOC. Written by: . You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.