我有以下 PHP 文件的布局
├── classes/
├── migrations/
├── public/
│ ├── images/
│ ├── scripts/
│ ├── styles/
│ └── index.php
├── sample/
└── templates/
我不确定如何将它放在我的服务器上,所以我将文件从public我的public_html文件夹中(这是我的 cPanel 已经拥有的)。
此外,我将其他目录放在同一级别,public_html以保持项目的正常结构。
因此,我最终得到了这个:
├── (some cPanel directory and files)
├── classes/
├── migrations/
├── public_html/
│ ├── images/
│ ├── scripts/
│ ├── styles/
│ └── index.php
├── sample/
├── templates/
└── (other cPanel directory and files)
现在,除索引页面外,所有其他页面都返回 HTTP 状态代码 404。
我究竟做错了什么?
作为参考,我尝试部署的项目可在https://github.com/srv-twry/Quizzer获得。
九州编程