title: How to redirect all request to subfolder with it's own .htaccess file
body: <p>I know such questions has been answered a lot of time, but neither of found answers works for me.<br />
  I have following url <code>http://dummy.com/api</code> to access my root folder where I am going to have my project (Laravel project).<br />
  I am deploying to the remote hosting so I have no acceess to the parent directories.<br />
  My project (simple Laravel project) consists from a lot of folders, which by the way should be placed in parent directories (<code>app,bootstrap,config...</code>) and public folder where main <code>index.php</code> of Laravel project is located.<br />
  So I have url like this <code>http://dummy.com/api/public/index.php</code>
  This directory includes it own <code>.htaccess</code> file with following content.</p>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L
  </code></pre>
  <p>This stuff is required by the laravel.</p>
  <p>So I need all requests to the <code>http://dummy.com/api</code> have been redirected to the <code>public/</code> subfolder(index.php by default).<br />
  For example <code>http://dummy.com/api/users</code> should be really <code>http://dummy.com/api/pulbic/users</code>.<br />
  But this should be transparent for the user and not changed to the real url.<br />
  I have tried a lot of different configurations also from here <a href="https://gist.github.com/ScottPhillips/1721489" rel="nofollow noreferrer">Common .htaccess Redirects</a></p>
  <p>But this doesn't work for me. Please help to create such rules to have desired result.<br />
  Thanks everyone in advance.</p>