title: Redirect all pages of one TLD to another
body: <p>\I'm darn nearly pulling my hair out trying to figure this out tonight. I'm hoping someone can help me out.</p>
  
  <p>I have 3 TLD's for a site, similar to the following: </p>
  
  <ul>
  <li>www.domain.com </li>
  <li>www.domain.org </li>
  <li>www.domain.net</li>
  </ul>
  
  <p><strong>They are all located in the same directory.</strong> </p>
  
  <p>I would like to set up 301 redirects so that all pages of the .org and .net point to their respective pages at the .com location.</p>
  
  <p>For example, domain.net/topic/page as well as www.domain.net/topic/page should permanently redirect to www.domain.com/topic/page.</p>
  
  <p>Currently, I am using the code below which only redirects the .net and .org home pages to the .com home page.</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
  RewriteRule .?$ http://www.domain.com%{REQUEST_URI} [R=301,L]
  </code></pre>
  
  <p>Thank you for your time,</p>
  
  <p>Casey</p>