title: htaccess redirect subdomain to subdirectory
body: <p>I have a multisite with drupal, I created a site which at first should be accessible in multiple ways (subdomains and paths), but now I want keep just one of them; so I whould redirect all the others. Right now I have:</p>
  
  <p>aaa.domain.com/<BR>
  bbb.domain.com/<BR>
  domain.com/aaa/<BR>
  domain.com/bbb/<BR>
  www.domain.com/aaa/<BR>
  www.domain.com/bbb/<BR></p>
  
  <p>And I want to redirect all of them to <a href="http://www.domain.com/bbb/" rel="nofollow">http://www.domain.com/bbb/</a></p>
  
  <p>I tried to write:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^aaa.domain.com$ [OR]&lt;BR&gt;
  RewriteCond %{HTTP_HOST} ^bbb.domain.com$ [OR]&lt;BR&gt;
  RewriteCond %{HTTP_HOST} ^www.domain.com\/aaa$ [OR]&lt;BR&gt;
  RewriteRule ^/?$ "http\:\/\/www\.domain\.com\/bbb\/" [R=302,L]
  </code></pre>
  
  <p>I will use 302 and no 301 until it work as expected.<BR>
  If I entern aaa.domain.com it works as expected, but if I enter<BR>
  <a href="http://aaa.domain.com/page/1" rel="nofollow">http://aaa.domain.com/page/1</a><BR>
  it don't work</p>
  
  <p>I have read anything I can about htaccess, but I am missing something.</p>
  
  <p>Thanks</p>