title: Getting HTTP error 500 with Slim Framework (php)
body: <p>I am getting HTTP error 500 when using the Slim framework.</p>
  
  <p>I have the index.php of Slim Framework in /api/v1/:</p>
  
  <pre><code>&lt;?php
  
  require '../../vendor/autoload.php';
  
  $app = new Slim\App();
  
  $app-&gt;get('/auth2', function ($request, $response, $args) {
      $response-&gt;write("Welcome to Slim!");
      return $response;
  });
  
  $app-&gt;run();
  </code></pre>
  
  <p>In the same folder I have my .htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [QSA,L]
  </code></pre>
  
  <p>But when I go to /api/v1/auth2 the page doesn't load. I only get a HTTP error 500. Have I misconfigured Slim?</p>