title: Merging two 301 redirects into one in .htaccess
body: <p>I want to redirect
  www.mysite.com/* to mysite.com/*
  and
  /forum/* to /*</p>
  
  <p>The lines I managed on .htaccess are:</p>
  
  <pre>
  RewriteEngine on
  
  #www.mysite.com -> mysite.com
  RewriteCond %{HTTP_HOST} ^www.mysite.com$ [NC]
  RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,C]
  
  #/forum/ to /
  RedirectMatch 301 ^/forum/(.*)$ http://mysite.com/$1
  </pre>
  
  <p>These instructions create two 301 redirections for URLS like <a href="http://www.mysite.com/forum/" rel="nofollow">http://www.mysite.com/forum/</a></p>
  
  <ol>
  <li><p>Does it hurt SEO? In what extent?</p></li>
  <li><p>How can I merge those two
  instructions and create one single
  instruction (maybe with complex
  RegExps) that does it with a single
  301 redirection?</p></li>
  </ol>
  
  <p>Thanks in advance!</p>