I don't know too much about web whatnots but couldn't this be done through virtualhosts? like say ip/other domains go to nothing or another place, domain.tld/subd.domain.tld goes to the main website?
Or am I mistaken and this circumvents that?
Or am I mistaken and this circumvents that?