将 WordPress 博客移动到具有相同域名的新主机

发布于 2024-11-03 09:31:20 字数 266 浏览 1 评论 0原文

我刚刚注册了一个新的虚拟主机,其主域名与我之前的主机相同。我通过 FTP 下载了整个网站,并在 phpMyAdmin 中导出了数据库。

更改 wp-config.php 文件以使数据库名称、用户名和密码与新主机的详细信息匹配后,我将文件上传到 public_html 文件夹(与旧主机上的目录相同),并导入数据库。

虽然我可以登录,但没有真正保存任何内容。我不得不再次设置主题,没有任何帖子显示等。信息全部在数据库中,所以我不明白出了什么问题。

您认为问题可能出在哪里?

I have just signed up to a new webhost with the same main domain name as my previous host. I downloaded the whole site via FTP and also exported the database in phpMyAdmin.

After changing the wp-config.php file so that the database name, username and password matched the details for my new host, I uploaded the files to the public_html folder (same directory as on the old host) and also imported the database.

Whilst I can log in, nothing has really saved. I had to set the theme again, none of the posts display etc. The information is all in the database, so I don't understand what has gone wrong.

What do you think the problem could be?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

笑咖 2024-11-10 09:31:20
  1. 检查您是否获得了所有文件。可能丢失的重要文件是 .htacces 文件:它们是“隐藏”的(这就是 . 的意思,一些 FTP 程序只是忽略它们

  2. 检查您是否实际上正在处理正确的文件如果 DNS 未正确指向(如果未传播,则会话之间可能会有所不同!),则您正在弄乱 2 个服务器:)

  1. Check if you got all the files. Important files that could be missing are .htacces files: they are 'hidden' (that's what the . kinda says, and some FTP programs just ignore them

  2. Check if you are actually working on the correct host. If the DNS isn't pointing correctly (it can differ between sessions if it isn't propagated!), you're messing with 2 servers :)

薄凉少年不暖心 2024-11-10 09:31:20

按照您描述的方式,一切都应该正常。还要确保清除缓存和 cookie,以便安装时可以识别新服务器。另请确保管理端常规选项卡中的 URL 设置未更改。

The way you described, everything should work. Also make sure you clear your cache and cookies so that the new server is recognized with your install. Also make sure that your URL settings have not changed in the general tab in the admin side.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文