WordPress 更新文章旧网址链接

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

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

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

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

参考:https://www.louishe.com/2023/07/21/doc-12971.html

滚动至顶部
扫描微信二维码联系我们 关闭