title: .htaccess Rewrite Domain & Preserve Path
body: <p>Can anyone assist me with rewriting a domain name but preserving the path?  I cannot seem to find what I am looking for, found a lot of articles about redirecting, but not rewriting.</p>
  
  <pre><code>www.domain2.com/path1/page.html as www.domain1.com/path1/page.html
  www.domain2.com/path1/page.html as www.domain1.com/path1/page.html
  </code></pre>
  
  <p>I have quite a lot of domain names.</p>
  
  <p>Many thanks for your advice or link to an article with the answer.</p>
  
  <p>Stu</p>