title: how to redirect "example.com" to "localhost/example.com"
body: <p>I am using MAMP to develop a Wordpress site locally. I've managed to map the domain  "example.com" to localhost (127.0.0.1) in my hosts file like so:</p>
  
  <pre><code>127.0.0.1    example.com
  </code></pre>
  
  <p>Consequently, "example.com" redirects to my document root:</p>
  
  <pre><code>example.com --&gt; /Applications/MAMP/htdocs
  </code></pre>
  
  <p>This is fine if I'm working on a single site; all my projects files go in 'htdocs'. The problem is I am working on multiple sites simultaneously, therefore I need more specific redirects, like so:</p>
  
  <pre><code>example1.com --&gt; /Applications/MAMP/htdocs/example1.com
  example2.com --&gt; /Applications/MAMP/htdocs/example2.com
  example3.com --&gt; /Applications/MAMP/htdocs/example3.com
  </code></pre>
  
  <p>Is this possible?</p>