title: multiple domain redirection with htaccess rewrite rules
body: <p>I am looking for a way to redirect all my old domains to a new domain ,</p>
  
  <p>It seems they are redirected in basic level , but when it comes the sub categories or perm links , no redirection works at all.</p>
  
  <pre><code>    Options +FollowSymLinks 
      RewriteEngine on
  
      RewriteCond %{HTTP_HOST} (www\.)?mydomain1\.com$ [NC]
      RewriteCond %{HTTP_HOST} (www\.)?mydomain2\.com$ [NC]
      RewriteCond %{HTTP_HOST} (www\.)?mydomain3\.com$ [NC]
      RewriteCond %{HTTP_HOST} (www\.)?mydomain4\.com$ [NC]
      RewriteCond %{HTTP_HOST} (www\.)?mydomain5\.com$ [NC]
      RewriteCond %{HTTP_HOST} (www\.)?mydomain6\.com$ [NC]
  
      RewriteRule ^(.*) http://www.mydomain7.com/$1 [QSA,L,R=301]
  </code></pre>
  
  <p>basic level redirection is fine : mydomain1.com/graph.php   = > mydomain7.com</p>
  
  <p>but even in this level it can't redirect to same page </p>
  
  <p>and more importantly the perm-links :</p>
  
  <p>mydomain1.com/users/13/James    => no redirection </p>