title: mod rewrite not working with laravel and bitNami
body: <p>http.conf has mod rewrite uncommented </p>
  
  <p>so no custom routes are working someone in #laravel mentioned it would be because mod rewrite isn't working here is my setup: </p>
  
  <p>laravel.conf has the following code: </p>
  
  <pre><code>Alias /laravel/ "C:\BitNami/frameworks/laravel/public/"
  Alias /laravel "C:\BitNami/frameworks/laravel/public"
  
  &lt;Directory "C:\BitNami/frameworks/laravel/public"&gt;
  Options +MultiViews
  AllowOverride None
  &lt;IfVersion &lt; 2.3 &gt;
  Order allow,deny
  Allow from all
  &lt;/IfVersion&gt;
  &lt;IfVersion &gt;= 2.3&gt;
  Require all granted
  &lt;/IfVersion&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>If I uncomment these lines:</p>
  
  <pre><code>#RewriteEngine On
  #RewriteRule ^/$ /laravel/ [PT]
  </code></pre>
  
  <p>then the main route will map to</p>
  
  <pre><code>http://localhost/ 
  </code></pre>
  
  <p>rather than </p>
  
  <pre><code>http://localhost/laravel 
  </code></pre>
  
  <p>which is preferable but secondary to the main problem</p>
  
  <p>.htaccess inside the public folder has this: </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      Options +FollowSymLinks
  RewriteEngine On
   RewriteBase /laravel
   &lt;/IfModule&gt;
  
   &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>here is my test code inside routes.php:</p>
  
  <pre><code>Route::get('test',function(){
  return 'test worked';
  });
  </code></pre>
  
  <p>which should resolve with </p>
  
  <pre><code>http://localhost/laravel/test 
  </code></pre>
  
  <p>but instead I get a 404 error </p>