【问题标题】:Error in display while trying to intergate a Wordpress platform to another Wordpress platform尝试将 Wordpress 平台集成到另一个 Wordpress 平台时显示错误
【发布时间】:2021-11-23 03:31:22
【问题描述】:

任务:

我的目标是将托管在 A 中的 Wordpress 平台集成到托管在 B 中的另一个 Wordpress 平台,方法是将其迁移到主机 B 并链接其数据库。

例如我有

testsite1.com 
testsite2.com

更新

  1. 列表项

我想将 testsite2 迁移到 testsite1 以便

testsite1.com/testsite2 = testsite2.com

接近

  • 从 testsite2 下载源代码和数据库
  • 已通过 FTP 将源代码上传到 testsite1 服务器
  • 将database2导入testsite1服务器
  • 通过配置 wp-config.php 将 database2 链接到源

结果

键入 testsite1.com/testsite2 时的预期结果应该是 this

结果是this

关于如何解决这个问题的任何想法?

更新:

  1. 更改了数据库中的 home-url 和 site-url。现在主页就像那个 snipboard.io/iGL4Sy.jpg,当我点击任何页面时,我都会得到这个 snipboard.io/qpSsHb.jpg。检查了数据库,需要的数据在那里。

【问题讨论】:

  • 您是否还更改了数据库中的 wp 选项表?网站网址和网站主页?

标签: php wordpress migration integration


【解决方案1】:

在 wp-config 文件中更改正确的数据库详细信息。

然后,更改数据库中 wp-option 表中的 site-url 和 site-home-url

【讨论】:

  • 我确实添加了正确的数据库...我创建了一个新数据库,然后导入了数据库,然后配置 wp-config 以打开它...任何线索 site-url 和 site-home-url可能在这里snipboard.io/JeWVIH.jpg
  • 你截图中的drgc_options是一个选项表。
  • 这更好,但我仍然遇到问题主页是这样的snipboard.io/iGL4Sy.jpg 当我点击任何页面时,我得到这个snipboard.io/qpSsHb.jpg
  • 我认为你的 .htaccess 文件中一定有错误
  • snipboard.io/pXHPSa.jpg 你能找到吗?或者该文件中的错误可能是什么?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-08-24
  • 1970-01-01
  • 2018-05-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-04-10
相关资源
最近更新 更多