title: htaccess RewriteRule rewrite to subfolder
body: <p>I am trying to rewrite the url 'test' to a subdirectory in /public. This is a Laravel App end I want to run the content in public/test independend of Laravel so I should be prevented to go through the Laravel router.</p>
  
  <p>/test/whatever should be <strong>invisbly</strong> forwarded to /public/test/whatever (The url should stay /test/whatever).</p>
  
  <p><strong>I now have this:</strong></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine On
     RewriteCond %{REQUEST_URI} ^/test/ [NC]
     RewriteRule ^(.*)$ public/test/$1 [L]
     RewriteRule ^(.*)$ public/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>So far this is forwarding to: /public/test/test/(index.php)</p>
  
  <p>I think I am close...</p>
  
  <p><strong>Update:</strong></p>
  
  <p>In the public directory is also a .htaccess file (Original, from Laravel 5.4):</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...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  
      # Handle Authorization Header
      RewriteCond %{HTTP:Authorization} .
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  &lt;/IfModule&gt;
  </code></pre>