我的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。