title: .htaccess redirect from site root to public folder, hiding "public" in URL?
body: <p>Bellow is my site directory structure: </p>
  
  <pre><code>htdocs/
      My-Project/
          public/
              index.php
              css/
              img/
              js/
          src/
              config.php
              templates/
              library/
  </code></pre>
  
  <p>I do not want any direct user access to any files inside the <code>src</code> directory. <code>src</code> contains my templating and backend logic scripts.</p>
  
  <p>I want to set up my <code>.htaccess</code> so that when the user goes to my website (root folder <code>My-Project</code>), they are redirected to <code>My-Project/public/index.php</code>. I would like the URL to simply look like <code>My-Project.com</code> while on the index page.</p>
  
  <p>Any help? I am hesitant to modify my .htaccess file as I see a lot of conflicting advice around here and on the net as to the best way to do this.</p>