I have built a website for a client who would like to host the client on hostinger. The issue we’re running into is that none of the routes other than “/” are being found. I’m assuming this has something to do with how the index.html file is being served but I couldn’t find any documentation on this problem specifically. I will include my file structure and a screenshot of the routing as well in case it helps.
Project Structure
Routing
I have tried creating a 404.html file with a script to redirect pages that aren’t found back to index.html (recommended by ChatGPT my last resort), which hasn’t seemed to do anything.
JunaidAdams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.