title: .htaccess and url rewriting challenge
body: <p>My problem is very simple.</p>
  
  <p>I have several folders in my root:</p>
  
  <pre><code>[folder1]
  [folder2]
  [folder3]
  </code></pre>
  
  <p>And my domain is something like: <strong>http://johndoe.net</strong></p>
  
  <p>I keep my website in <strong>[folder1]</strong>, so basically I access it by typing <strong>http://johndoe.net/folder1</strong></p>
  
  <p>My goal is this:</p>
  
  <p>I want to type <strong>http://johndoe.net</strong> and I get the content of <strong>http://johndoe.net/folder1</strong> but the address has to remain <strong>http://johndoe.net</strong></p>
  
  <p>I want to type <strong>http://johndoe.net/folder1</strong> and see my website, but my address has to change to <strong>http://johndoe.net</strong></p>
  
  <p>Seems easy enough, but I failed finding the solution after several hours of searching.</p>
  
  <p>So far, the only thing I achieved is redirecting from <strong>http://johndoe.net</strong> to <strong>http://johndoe.net/folder1</strong> by placing this bit of code in my <strong>.htaccess</strong> in my root:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^johndoe\.net$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.johndoe\.net$
  RewriteRule ^/?$ "http\:\/\/johndoe\.net\/folder1\/" [R=301,L]
  </code></pre>
  
  <p>When I type <strong>http://johndoe.net</strong>, I get <strong>http://johndoe.net/folder1</strong> in my address bar</p>
  
  <p>but what I need is my address to remain <strong>http://johndoe.net</strong></p>
  
  <p>Could anyone help me with this?</p>