Custom subdomain redirection

I’ve seen my exact question posted here before, but unfortunately in nearly two years there has not been a response, so I am reposting it here.