title: Redirect url and mask domain using htaccess
body: <p>I'm trying to make a little tweak so i will able to hold 2 domains in 1 hosting, but what i missing - can't mask the url in address bar.
  that what i mean: i have 2 domains - test1.com and test2.com
  test1.com located in / (root) directory and test2 content located in /subdir/</p>
  
  <p>i used this to redirect all request from test2.com to the /subdir/ using htaccess redirect 301:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^test2.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.test2.com$
    RewriteRule (.*)$ http://test1.com/subdir/ [R=301,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>that's working fine, but what i got in address is: <a href="http://test1.com/subdir/" rel="nofollow">http://test1.com/subdir/</a>
  how can i mask/rewrite this address url so it will shown as <a href="http://test2.com" rel="nofollow">http://test2.com</a>  ?</p>