title: How to redir subfolders to different domain than root domain
body: <p>IHi, I'm to this, I've read and tried all tips I've found here, but it's still not working the way I need.</p>
  
  <p>I'm using htaccess to redir domain and it's structure to new domain:</p>
  
  <pre><code>`rewritecond %{http_host} ^www.olddomain.com [nc]
  rewriterule ^(.*)$ http://www.newdomain.com/$1 [r=301,nc]`
  </code></pre>
  
  <p>It redirs all subfolders e.g. www.olddomain.com/contact/ to www.newdomain.com/contact/ etc., so far so good, BUT I need to redir the mainpage, the one page only, to different URL: 
  from www.olddomain.com to www.newdomain.com/about-old/</p>
  
  <p>All I've tried this:</p>
  
  <pre><code>`Options +FollowSymlinks
  RewriteEngine on
  rewritecond %{http_host} ^www.olddomain.com [nc]
  rewriterule ^(.*)$ http://www.newdomain.com/about-old/ [r=301,nc,L]
  rewritecond %{http_host} ^www.olddomain.com [nc]
  rewriterule ^(.*)$ http://www.newdomain.com/$1 [r=301,nc]`
  </code></pre>
  
  <p>but it just redirs EVERYTHING to www.newdomain.com/about-old/ </p>
  
  <p>Any ideas, please?
  Thanks you</p>