title: rewrite rule, two domains pointing to same directory, redirect one file at one domain
body: <p>How to possible redirect a single file having two domains pointing to the same directory.</p>
  
  <p>I have:</p>
  
  <pre><code>domain.com
  domain2.com
  </code></pre>
  
  <p>going to <code>/var/www</code></p>
  
  <p>if I hit domain2.com I go to <code>/var/www/index.php</code></p>
  
  <p>I'd like to have a rewrite rule that states <code>domain2.com/index.php</code> should go to <code>domain2.com/thefile.php</code></p>
  
  <p>Thanks</p>