so i decided to make a site and so i did, using a normal html app that glitch provides. I decided to futher increment the amount of data i could use on my site and decided that it would be cool to link a discord bot to it so i could recieve some info from my bots and use them on the site, so i went ahead and made a hello express app (the one with node and express).
I then proceded to copy the index.html code and paste it in /views/index.html, then i went and made the new files that i needed like /views/about.html, /views/bots.html etc… now im stuck in my index.html file…i go to where you click to be redirected to (example) bots.html and change “bots.html” to “./bots.html” (note that both the files are in the /views/ folder).
on the site i go and click and get an error saying that it cannot find that file…i was confused. i tried many different ways and still nothing… anyone know how to help out?
No worries! These things can be tricky when you’re just starting out. I took a look at your project, and the fastest way to get things working will be to move your html files to public instead of views. You can even move index.html there, and just change views/index.html in server.js to public/index.html. The express.static on line 14 will server those for you automatically.