title: Redirecting a URL to a folder in DocumentRoot?
body: <p>I have three folders in my document root -</p>
  
  <pre><code>localhost/myMainProject/   
  localhost/myMainProjectSubdomain/  
  localhost/myThirdProject/
  </code></pre>
  
  <p>I want to do the achieve following URL mapping -</p>
  
  <pre><code>www.mymainproject.com ---&gt; localhost/myMainProject/
  mysubdomain.mymainproject.com ---&gt; localhost/myMainProjectSubdomain/
  www.mythirdproject.com ---&gt; localhost/myThirdProject/
  </code></pre>
  
  <p>I tried to change my hosts file to :</p>
  
  <pre><code>127.0.0.1/myMainProjectSubdomain mysubdomain.mymainproject.com
  127.0.0.1/myMainProject www.mymainproject.com 
  127.0.0.1/myThirdProject www.mythirdproject.com
  </code></pre>
  
  <p>But this doesnt work. I think I have to create some .htaccess file or something somewhere but have no idea how that works.</p>
  
  <p>Is this possible ? Please guide me on how this can be achieved. Thanks.</p>