gpt4 book ai didi

托管转移后不会加载 Wordpress 页面

转载 作者:行者123 更新时间:2023-12-02 22:29:45 25 4
gpt4 key购买 nike

我刚刚将一个 wordpress 网站转移到另一个域。
对于转移,我做了以下步骤:

  • 复制数据库并更改域名(http://olddomain.com 到 http://newdomain.com )
  • 在新主机上导入数据库(通过 phpMyadmin)
  • 更改 wp-config 以匹配新的数据库设置
  • 上传所有wp文件

所以主页可以正常访问,但我无法访问其他页面。但是,它们显示在我的管理页面中。

最佳答案

我过去这样做并为我工作的方式:

1- Export db from phpMyAdmin, then replace in the .sql file all references to old domain.
2- Imported db on new host (via phpMyadmin)
3- Changed wp-config to match new db settings
4- Uploaded all wp files
5- Regenerate .htaccess file, if you are using permalinks.
(you can do this the way @Riboflavin suggests)

此外,您还可以在这里找到一些可能有帮助的附加信息:

http://codex.wordpress.org/Changing_The_Site_URL

关于托管转移后不会加载 Wordpress 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12496564/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com