title: Laravel all routes except '/' return 404
body: <p>As the title says, all the routes in my laravel app except the home('/') route result in a 404 error.</p>
  
  <p>I have separated the public folder from the rest of the laravel app as represented in the folder structure below. <strong>EDIT: I have confirmed that this is not what's causing the problem.</strong></p>
  
  <p>This error occurs on both the development system (local) and the production system (shared hosting).</p>
  
  <p><strong>EDIT: I forgot to mention: routes work if I go to localhost/index.php/route_name</strong></p>
  
  <p><em>Folder structure: (folder names changed to public/ and laravel/ for convenience)</em></p>
  
  <pre><code>.
  +-- public/
  |    +-- index.php
  |    +-- packages/
  |    +-- etc...
  +-- laravel/
  |    +-- app/
  |    +-- artisan
  |    +-- etc...
  </code></pre>
  
  <p><em>routes.php:</em></p>
  
  <pre><code>&lt;?php
  Route::get('/', function() // Only this route works
  {
      return 'hello world';
  });
  
  Route::get('oversikt', function() // This route does not work
  {
      return 'goodbye world';
  });
  </code></pre>
  
  <p><em>bootstrap/paths.php:</em></p>
  
  <pre><code>&lt;?php
  return array(
      'app' =&gt; __DIR__.'/../app',
      'public' =&gt; __DIR__.'/../../pc',
      'base' =&gt; __DIR__.'/..',
      'storage' =&gt; __DIR__.'/../app/storage',
  );
  </code></pre>
  
  <p><em>index.php:</em></p>
  
  <pre><code>&lt;?php
  require __DIR__.'/../pc_backend/bootstrap/autoload.php';
  $app = require_once __DIR__.'/../pc_backend/bootstrap/start.php';
  $app-&gt;run();
  </code></pre>
  
  <p><em>.htaccess: (unmodified)</em></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...
      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><a href="https://stackoverflow.com/questions/13514990/laravel-4-all-routes-except-home-result-in-404-error">There exists an almost identical question here on stackoverflow</a>, but it does not provide an answer.</p>
  
  <p>How can I resolve this?</p>