title: .htaccess rewrite domainnames, save subdomain and parameters
body: <p>i have 2 domains but want use only one. </p>
  
  <p>these some examples of domains...</p>
  
  <p>x://test1.domain1.xx/parameter/1</p>
  
  <p>x://test1.domain1.xx/parameter/2</p>
  
  <p>x://test1.domain1.xx/parameter/3</p>
  
  <hr>
  
  <p>x://test2.domain1.xx/parameter/1</p>
  
  <p>x://test2.domain1.xx/parameter/2</p>
  
  <p>x://test2.domain1.xx/parameter/3</p>
  
  <hr>
  
  <p>x://test1.domain2.xx/parameter/1</p>
  
  <p>x://test1.domain2.xx/parameter/2</p>
  
  <p>x://test1.domain2.xx/parameter/3</p>
  
  <hr>
  
  <p>x://test2.domain2.xx/parameter/1</p>
  
  <p>x://test2.domain2.xx/parameter/2</p>
  
  <p>x://test2.domain2.xx/parameter/3</p>
  
  <p>now i want only use xx.domain2.xx/params... all sub/domains with maindomain "domain1" should be rewritten or redirect. without loose parameters or subdomain.</p>
  
  <p>thanks a lot.</p>