title: htaccess rewrite base url
body: <p>Anyone out there good with htaccess and mod rewrite - i need your help!</p>
  
  <p>I need to rewrite the base part of a url.</p>
  
  <p>for example all requestst to <a href="http://domain1.com" rel="nofollow">http://domain1.com</a> need to go to <a href="http://domain2.com" rel="nofollow">http://domain2.com</a></p>
  
  <p>The requests will typically be in the form as follows:</p>
  
  <p><a href="http://domain1.com/main/test?q=1" rel="nofollow">http://domain1.com/main/test?q=1</a></p>
  
  <p>i then need to go to <a href="http://domain2.com/main/test?q=2" rel="nofollow">http://domain2.com/main/test?q=2</a></p>
  
  <p>Pleas help!</p>
  
  <p>Thanks in advance</p>