So I want to redirect subdomain.domain1.com to domain2.com. What's the easiest way to do it?

also whats the correct line for non-www to www redirect