title: .htaccess to remove index.php and subfolder from URL
body: <p>I am an .htaccess newbie and am having problems in removing a folder name from my sites URL.</p>
  
  <p>It is currently: www.mydomain.com/engine</p>
  
  <p>I have an expression engine site in a subfolder (named engine) of my hosts html folder. In this folder I have an htaccess document in which I have followed the directions in the expressionengine user guide to remove the index.php? from the URL succesfully, with: </p>
  
  <p>
          RewriteEngine On</p>
  
  <pre><code>    # Removes index.php from ExpressionEngine URLs
      RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?/$1 [L]
  </code></pre>
  
  <p></p>
  
  <p>I would now like to remove the "engine" referring to the subfolder from the URL too.</p>
  
  <p>I have made numerous attempts going on advice in previous questions but have had no success.</p>
  
  <p>On viewing www.mydomain.com, with any of my attempts I recieve:</p>
  
  <p>Forbidden. You don't have permission to access / on this server. </p>
  
  <p>I thought this could be a permissions problem, but this containing html folder has the same permissions as the "engine" folder which allows access.</p>
  
  <p>Can anybody help with the .htaccess code i require? </p>