Redirecting a single subdomain in Multi-site

We have hundreds of domains / thousands of subdomains. Sometimes we want to redirect a single subdomain to another. We tried doing this in cpanel but it caused errors. Is there a way to do it with multi-site, or even some code? thanks!