主机文件条目返回404找不到

发布于 2025-01-30 09:32:29 字数 278 浏览 1 评论 0原文

过去,当我迁移一个网站时,我设置了一个带有域的主机,更新带有域和新IP地址的主机文件,然后开始迁移资产。我的问题是,现在尝试此操作时,我将获得无效的SSL证书,然后继续访问404页。

自从我上次迁移以来,过去一年左右发生了什么变化?如果由于浏览器/等的安全性更新而不再起作用,这些天不再工作的任何建议?

编辑: 我正在为新站点位置使用共享主机(主机)(主机),并且除了指向DNS外,还设置了所有设置。而是将我的域名指向新的共享主机,而是更新了主机文件。在将DNS从实时站点切换到主机上的DN之前,我将进行大量修改。

In the past when I migrated a site I setup a host with my domain, update my hosts file with the domain and new IP address and start migrating assets. My issue is that now when I try this I get an invalid SSL certificate and when continuing go to a 404 page.

What has changed over the past year or so since my last migration? and any advice on setting up a staging environment these days if this no longer works due to updates to security in browsers/etc?

EDIT:
I am using a shared host (Hostgator) for the new sites location and have everything setup besides pointing DNS. Instead of pointing my domain to the new shared host I updated my Hosts file. I am going to do a lot of modification before switching DNS from the live site to the one on Hostgator.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文