WordPress 更新文章旧链接

通常只需要运行这三分行命令即可:

UPDATE wp_posts SET post_content = REPLACE (post_content, ‘http://localhost/wp-rw/’, ‘http://www.china.com/’);

UPDATE wp_posts SET guid = REPLACE (guid, ‘http://localhost/wp-rw/’, ‘http://www.china.com/’);

UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, ‘http://localhost/wp-rw/’, ‘http://www.china.com/’);

滚动至顶部
扫码添加微信联系我们 关闭