madhusudanbabar / k-domains

A simple module to manage multiple subdomains with just one project
https://www.npmjs.com/package/k-domains
MIT License
52 stars 8 forks source link

Disable redirect to rootdomain if subdomain does not exist #13

Closed tazaraz closed 1 year ago

tazaraz commented 2 years ago

It would be very nice if there was an optional flag disabling the check: if the subdomain is not in the list of user provided domains, set the rootdirectory to root - domain given by the user This way, when a subdomain does not exist, it would be redirected to the 404 page.