title: Redirect subdomain to subfolder of main domain with same structure
body: <p>Please help me to create rewrite rule for <code>wordpress</code> (<strong>.htacess</strong>) that will do the following:</p>
  <p>Redirect subdomain</p>
  <p><strong>AAA.site.com/BBB.html to  site.com/AAA/BBB.html</strong></p>
  <p>Let me explain here</p>
  <ul>
  <li>I will create a subfolder(AAA) with same name as I have
  subdomain(AAA).</li>
  <li>Page name remain unchanged(BBB.html)</li>
  </ul>
  <p>I have more than 100+ subdomains which i want to redirect to the &quot;folder&quot; with same name as subdomain using WILDCARD.</p>
  <p>Thanks in advance</p>