title: .htaccess not working with Laravel
body: <p>I'm using Laravel 5.1 with a PuPHPet VM using Apache (so not Homestead).</p>
  
  <p>I've got the default .htaccess in my public dir;</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]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I've been in to the apache2.conf;</p>
  
  <pre><code>AccessFileName .htaccess
  &lt;FilesMatch "^\.ht"&gt;
      Require all granted
  &lt;/FilesMatch&gt;
  
  &lt;Directory /&gt;
    Options FollowSymLinks
    AllowOverride All
  &lt;/Directory&gt;
  
  &lt;Directory /var/www/&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>And I've restarted apache2;</p>
  
  <pre><code>sudo service apache2 restart
  </code></pre>
  
  <p>But I still get a not found on;</p>
  
  <p><a href="http://192.168.56.131/auth/register" rel="nofollow">http://192.168.56.131/auth/register</a></p>
  
  <p>But not on;</p>
  
  <p><a href="http://192.168.56.131/public/auth/register" rel="nofollow">http://192.168.56.131/public/auth/register</a></p>
  
  <p>So I'm not sure what to try now. Part of it must work because the <code>index.php</code> is no longer required</p>
  
  <hr>
  
  <h2><strong>* UPDATE *</strong></h2>
  
  <p>This is working;</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [QSA,L]
  </code></pre>
  
  <p>But this does not;</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^(.*)$ public/$1 [L]
  </code></pre>
  
  <p>It just doesn't like the whole "public" thing.</p>
  
  <p>This is an updated partial of my apache2.conf file;</p>
  
  <pre><code>AccessFileName .htaccess
  &lt;FilesMatch "^\.ht"&gt;
      Require all denied
  &lt;/FilesMatch&gt;
  
  &lt;Directory /&gt;
    Options FollowSymLinks
    AllowOverride None
  &lt;/Directory&gt;
  </code></pre>
  
  <p>So frustrating! I don't understand what I am missing here.</p>