79587024

Date: 2025-04-22 16:37:07
Score: 2
Natty:
Report link

Solution Found: home page route needed to be changed to:

res.sendFile('splitHomepage.html', {'root': './splitSiteFiles'});

start at the root 'folder the server file is located', which is represented as the '.' in the next parameter block. from there, specify the paths in form: /innerfoldername/innerfolder name, and etcetera as required.

Seems simple but still want to keep this up for students and people new to nodeJS like I am.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shoba