For starters you need to setup your .htaccess file (in root directory)!
Inside root directory create a file called index.php and put this inside of it:
Now inside root directory create new directories for every one of your domains (and make sure they are added as aliases in your NodeHost settings).
For example my root directory looks like:
- epicmc.games/
- daltonedwards.me/
- .htaccess
- index.php
Inside domain directory create two more directories called pages and layout.
Page names should be in all lowercase (pages/pagename.html) is accessible at website.com/pagename (case insensitive).
Create pages/home.html and put your home content in it!! This is the page that shows when no page is defined.
In layout directory create header.html and footer.html.
This is from my specific setup. You can edit this to work however you want.
If a page doesn't exist it'll check to see if it's a file (and in most cases add the correct content-type header).