How to setup a sitewide 301 redirect page

I don't want to use a plugin. We are looking for the cleanest and easiest way to setup a network wide 301 redirect page. Can this be accomplished via htaccess without having to explicitly list each subdomain mapped?

Thanks