title: Different root folder depending on the URL in .htaccess
body: <p>I need your help guys. I've been searching everywhere on how to get what I want and I can't seem to find the correct answer.</p>
  
  <p>I want to use different root folders depending on the URL.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>/
    /site
      /index.php
    /panels
      /employer
        /index.php
      /admin
        /index.php</code></pre>
  </div>
  </div>
  </p>
  
  <p>So if I will search <code>www.domain.com</code>, it should use <code>/site</code> folder. Else if I'm going to search <code>www.domain.com/employer</code>, it should use <code>/panels/employer</code> folder. And lastly, if I'm going to search <code>www.domain.com/admin</code>, it should use <code>/panels/admin</code> folder.</p>
  
  <p>I don't know if this is possible and I would surely appreciate it if you guys can help me out!</p>
  
  <p><strong>UPDATED</strong></p>
  
  <p>Here is the current code, thanks to @devROYAL.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>RewriteEngine On
  
  RewriteRule ^admin/(.*)$ panels/admin/$1 [NC,QSA]
  RewriteRule ^employer/(.*)$ panels/employer/$1 [NC,QSA]</code></pre>
  </div>
  </div>
  </p>
  
  <p>The only problem in here is that, when I search domain.com, it does not use the folder /site.</p>