Try
Code:
RedirectMatch 301 sub1.domain1.com sub1.domain2.com