将HTTPS添加到我的网站URL时为什么会出现错误404? [英] Why am I getting an error 404 when adding HTTPS to my website URL?

查看:92
本文介绍了将HTTPS添加到我的网站URL时为什么会出现错误404?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从另一个主机克隆了一个网站,并且一切正常.当我访问URL"mysitename.com"和" http://mysitename.com 时,可以访问网站前端在我的浏览器中.但是,如果我尝试" https://mysitename.com ",则会收到错误404.找不到请求的URL.此服务器."

I recently cloned a website from another host, and everything is working fine. I can access the website front end when I visit the URL "mysitename.com" and "http://mysitename.com" in my browser. However if I try "https://mysitename.com" I get "Error 404. The requested URL was not found on this server."

什么可能导致此问题?我想我可以排除SSL证书的问题,因为我使用的是主机提供的默认证书,而我在许多其他站点上使用的默认证书都没有问题.我觉得它与配置文件有关,但是我不知道我要添加/修改什么.任何帮助将不胜感激!谢谢.

What could be causing this problem? I think I can rule out my SSL certificate being the issue as I am using the same default certificate provided by my host which I have used with no issues on many other sites. I feel like it has something to do with the config file but I don't know what I would have to add/modify. Any help would be greatly appreciated! Thanks.

推荐答案

让我们分解一下问题

  • https://mysitename.com/时,会收到错误404.http://mysitename.com/"rel =" nofollow noreferrer> http://mysitename.com/正常工作.
  • SSL部分
  • You get a error 404 when you try https://mysitename.com/ while http://mysitename.com/ works just fine.
  • SSL Part

HTTP 404、404未找到,404,页面未找到或服务器未找到错误消息是计算机网络通信中的超文本传输​​协议(HTTP)标准响应代码,指示浏览器能够与之通信给定的服务器,但是服务器找不到请求的内容.在此处了解更多有关404错误的信息.

The HTTP 404, 404 Not Found, 404, Page Not Found, or Server Not Found error message is a Hypertext Transfer Protocol (HTTP) standard response code, in computer network communications, to indicate that the browser was able to communicate with a given server, but the server could not find what was requested. Read More About 404 error here.

您以前的主机为您提供了一个IP,并向您颁发了SSL证书.现在,您可能想要添加第二个或第三个网站.在共享主机上,您可以获得全部1个专用ip.专用IP地址只能有1个证书.

Your previous host gave you an ip and issued you an SSL certificate. Now, you probably want to add a second or third website. Well on a shared host 1 dedicated ip is all you can get. You can only have 1 certificate for a dedicated ip address.

您现在从以前的主机克隆了该网站,但使用的是先前提供的SSL证书.是否也应该为HTTPS加密设置新的IP?否,您可能是说统一通信证书在这里

You cloned the website from your previous host now but are using the same SSL certificate it provided you with earlier. Should it get the new ip set up for HTTPS encryption as well? No You probably mean a Unified Communication Certificate here

我假设这就是您想要的.希望对您有所帮助.

I'm assuming this was all you were looking for. Hope it helps.

这篇关于将HTTPS添加到我的网站URL时为什么会出现错误404?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆