title: Rewrite root directory to subdirectory
body: <p>I am developing a website that runs a backend and a frontend out of two different directories.</p>
  
  <ul>
  <li>/frontend/</li>
  <li>/admin/</li>
  </ul>
  
  <p>I would like to run the /frontend/ as the root whilst still running the /admin/ as it's own directory.</p>
  
  <p>What do I need to write into the .htaccess to do this.</p>
  
  <p>This is how my .htaccess file looks currently:</p>
  
  <pre><code># Set the default handler.
  DirectoryIndex index.php
  
  # Prevent directory listing
  Options -Indexes
  
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      ErrorDocument 404 /admin/404.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Any and all answers will be appreciated.</p>