title: How to forward www and non www .net to www .com?
body: <p>I can forward the www .net URL to the www .com. But how can I forward the non www .net to the www .com?</p>
  
  <p>The code below is what I am using in the .htaccess file and it is partially working.</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} !^www\.example\.net$ [NC]
  RewriteCond %{HTTP_HOST} ^www\.example\.net$ [NC]
  RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
  </code></pre>