Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 namecheap 共享主机中安装了 laravel 5.7 应用程序。应用程序使用 http:// 加载。但是当我使用 https:// 时,我得到 404。
当我测试时,该应用程序正在到达 index.php 文件。从那里开始有些东西不起作用。
一切都是默认的。.htaccess 文件、路线和一切。这是一个全新的 laravel 安装。
请帮助我解决启用 ssl 时出现 404 的问题。
我认为您必须在启用 ssl 后将您的应用程序放入 private_html。
您需要在 .htaccess 中的默认规则之前添加此规则:
RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
进一步检查您是否确实安装了 ssl 证书,它不应导致此错误,但您仍应检查它。
So I did npm install express and npm install socket.io and I brought the node_modules folders to my server folder where I am using WAM
npm install express
npm install socket.io
node_modules
server
WAM