title: 301 Redirect Domain and Subdomains with htaccess
body: <p>I am moving a site to a new domain and need the whole structure (of subdomains and domains) to stay intact while using a 301 redirect.</p>
  
  <blockquote>
    <p><a href="http://example.com/test/page" rel="nofollow">http://example.com/test/page</a>
    to
    <a href="http://example2.com/test/page" rel="nofollow">http://example2.com/test/page</a></p>
  </blockquote>
  
  <p>also</p>
  
  <blockquote>
    <p><a href="http://wildcard.example.com/test/page/random" rel="nofollow">http://wildcard.example.com/test/page/random</a>
    to
    <a href="http://wildcard.example2.com/test/page/random" rel="nofollow">http://wildcard.example2.com/test/page/random</a></p>
  </blockquote>