Redirect 301 to another subdomain

I’m looking to 301 redirect post content from one subdomain to another. Can this be done? :smiley: