Contao CMS 错误与 https - 404 错误

Contao CMS error with https - 404 error

早上好

我有一个域 www.example.com,它是 Linux Apache 上的 Contao 3.1.3 CMS 网站。

我刚刚为域购买并安装了 SSL 证书。

当我去 https://www.example.com (or https://example.com) 时一切正常。

当我尝试域上的其他页面之一时,http://www.example.com/folder/page.html 一切正常,但 https://www.example.com/folder/page.html ,我得到一个错误:

The requested URL /folder/page.html was not found on this server.

管理区域中的页面不会发生这种情况,通过 https

控制台日志显示:

Failed to load resource: the server responded with a status of 404 (Not Found) What is the solution to make all pages appear ok under https

我试过这个:https://community.contao.org/de/showthread.php?43595-SSL-und-Contao 但没有帮助

我也检查了https://www.sslshopper.com/ssl-checker.htm看是不是ssl证书有问题,但是没有发现问题。

杰斯·D

问题不能出在 SSL 上。根据您的解释,我建议您尝试在设置中禁用文件夹 urls 和 url 重写。然后确保页面存在。我相信您可以从这里找到问题所在。

还要确保在根页面中,'domain' 字段在 https 上(如果已设置)。

您可以恢复您的文件夹并url在一切正常时重写设置

问题实际上出在虚拟服务器上的指令上。