title: Most efficient way to redirect several TLD's sharing a common root to one primary domain using htaccess
body: <p>I'm using the following code (repeated) to redirect 6 additional TLDs to one primary TLD. is there a more efficient way to achieve the same result?</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} !^(www\.)?mydomain\.com$ [NC]
  RewriteRule .?$ http://www.mydomain.com%{REQUEST_URI} [R=301,L]
  </code></pre>