【发布时间】:2021-11-23 03:31:22
【问题描述】:
任务:
我的目标是将托管在 A 中的 Wordpress 平台集成到托管在 B 中的另一个 Wordpress 平台,方法是将其迁移到主机 B 并链接其数据库。
例如我有
testsite1.com
testsite2.com
更新
- 列表项
我想将 testsite2 迁移到 testsite1 以便
testsite1.com/testsite2 = testsite2.com
接近
- 从 testsite2 下载源代码和数据库
- 已通过 FTP 将源代码上传到 testsite1 服务器
- 将database2导入testsite1服务器
- 通过配置 wp-config.php 将 database2 链接到源
结果
键入 testsite1.com/testsite2 时的预期结果应该是 this
结果是this
关于如何解决这个问题的任何想法?
更新:
- 更改了数据库中的 home-url 和 site-url。现在主页就像那个 snipboard.io/iGL4Sy.jpg,当我点击任何页面时,我都会得到这个 snipboard.io/qpSsHb.jpg。检查了数据库,需要的数据在那里。
【问题讨论】:
-
您是否还更改了数据库中的 wp 选项表?网站网址和网站主页?
标签: php wordpress migration integration