title: .htaccess redirect from subfolder to new domain
body: <p>Google indexed my dev server :) I had test version of the site on him, now I want to 301 all the traffic to new server. But on dev I had this in folder and I don't know how to redirect.</p>
  
  <p>Dev server: <a href="http://mydevserver.xyz/myfolder1/" rel="nofollow">http://mydevserver.xyz/myfolder1/</a>
  Official page server: <a href="http://mypage_server.abc/" rel="nofollow">http://mypage_server.abc/</a></p>
  
  <p>Tried:</p>
  
  <pre><code>RedirectMatch 301 ^/myfolder1/ http://mypage_server.abc/?
  </code></pre>
  
  <p>But redirects to <a href="http://mypage_server.abc" rel="nofollow">http://mypage_server.abc</a> not the subpage.</p>