title: Laravel on Windows Server 2008 R2 and IIS7.5 results in 500 Internal server error
body: <p>I'm trying to set up Laravel on IIS7.5 and I'm stuck for a while now.
  I setted up the environment and the URL rewrite. When I place a common index.php with hello world in the public folder, the browser gives me "Hello World".
  When I use the laravel index.php I get an 500 Internal Server Error.
  Can anyone help me on this? I already tried 50 other solutions found on the internet but none of them really helped me.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;system.webServer&gt;
          &lt;defaultDocument&gt;
              &lt;files&gt;
                  &lt;clear /&gt;
                  &lt;add value="index.php" /&gt;
                  &lt;add value="default.aspx" /&gt;
                  &lt;add value="Default.htm" /&gt;
                  &lt;add value="Default.asp" /&gt;
                  &lt;add value="index.htm" /&gt;
                  &lt;add value="index.html" /&gt;
              &lt;/files&gt;
          &lt;/defaultDocument&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="Imported Rule 1"&gt;
                      &lt;match url="^(.*)$" ignoreCase="false" /&gt;
                      &lt;action type="Rewrite" url="/public/{R:1}" /&gt;
                  &lt;/rule&gt;
                  &lt;rule name="Imported Rule 2" stopProcessing="true"&gt;
                      &lt;match url="^(.*)$" /&gt;
                      &lt;conditions logicalGrouping="MatchAll"&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsFile"  ignoreCase="false" negate="true" /&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /&gt;                     
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="public/index.php/{R:1}" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
          &lt;httpErrors errorMode="Detailed" existingResponse="PassThrough" /&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>