I have the following layout of a PHP files
├── classes/
├── migrations/
├── public/
│ ├── images/
│ ├── scripts/
│ ├── styles/
│ └── index.php
├── sample/
└── templates/
I wasn't sure how to put this on my server so I put the files from public
into my public_html
folder (which is what my cPanel already had).
Also, I put the other directories on the same level as public_html
so as to maintain the regular structure of the project.
As such, I end up with this:
├── (some cPanel directory and files)
├── classes/
├── migrations/
├── public_html/
│ ├── images/
│ ├── scripts/
│ ├── styles/
│ └── index.php
├── sample/
├── templates/
└── (other cPanel directory and files)
Now, all other pages returns a HTTP status code 404 except the index page.
What am I doing wrong?
For reference, the project I'm trying to deploy is available at https://github.com/srv-twry/Quizzer.