Configuring a redirects file (doesn’t achieve the intended behaviour)
Looking at setting up forwarding for the subdomains (doesn’t seem possible)
Browsing these forums/Google to find other options (no luck)
From what I understand, the solution is to deploy multiple sites on Netlify and set each of those up with a subdomain. This brings me to my questions:
Is this the best approach?
To keep things simple, I’d like to keep it all in the same repo. Is there any way to deploy from one repo and have the base page different? e.g. one of them loads to ‘index.html’, one should load to ‘page-a.html’ and one to ‘page-b.html’. I assumed there might be a build command but I can’t figure it out
Am I missing anything obvious?
Thanks for your help and sorry if these are silly questions. I’m entirely self ‘taught’ and am pretty sure I have some big gaps in my understanding.
I’m unaware of another way to do it, I’ve always configured as separate sites and it works.
There is no concept of a “base page”, if you wanted page-a.html to be the “base page” of a certain build, then you would do something like mv page-a.html index.html, to overwrite the index with page-a so that it’s served by default for that build.
Alternatively you could build the different “sites” to different folders, and set the Publish directory separately for each site.