title: slim framework Page not Found
body: <p>i don't understand, that's not the first time i launch a project under slim but i have an unexplained error.</p>
  
  <p>My folder:</p>
  
  <pre><code>c:\wamp\www\slim
  </code></pre>
  
  <p>I created "public" folder</p>
  
  <pre><code>c:\wamp\www\slim\public
  </code></pre>
  
  <p>Like the doc say, i create 2 .htaccess:
  In root:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^$ public/ [L]
  RewriteRule (.*) public/$1 [L]
  </code></pre>
  
  <p>In public folder:</p>
  
  <pre><code># Redirect to front controller
  RewriteEngine On
  # RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [QSA,L]
  </code></pre>
  
  <p>And here my index.php in public folder:</p>
  
  <pre><code>&lt;?php
  use \Psr\Http\Message\ServerRequestInterface as Request;
  use \Psr\Http\Message\ResponseInterface as Response;
  
  require '../vendor/autoload.php';
  
  $app = new \Slim\App;
  var_dump($_SERVER);
  
  $app-&gt;get('/', function (Request $request, Response $response) {
  $response-&gt;getBody()-&gt;write("Hello");
  
  return $response;
  });
  
  $app-&gt;get('/hello/{name}', function (Request $request, Response $response, array $args) {
  $name = $args['name'];
  $response-&gt;getBody()-&gt;write("Hello, $name");
  
  return $response;
  });
  
  $app-&gt;run();
  </code></pre>
  
  <p>if i try to go to: <a href="http://localhost/slim/" rel="nofollow noreferrer">http://localhost/slim/</a> :: Page not found
  if i try to go to: <a href="http://localhost/slim/hello/Alex" rel="nofollow noreferrer">http://localhost/slim/hello/Alex</a> :: Page not found</p>
  
  <p>It only works if i set my routes like this:</p>
  
  <pre><code>$app-&gt;get('/slim/hello/{name}', function (Request $request, Response $response, array $args) {...
  </code></pre>
  
  <p>I have to add "slim/" in route.</p>
  
  <p>Why? On my other computer it works. The only thing that change is the version of apache: 2.3.4 and 2.3.23 Please help.</p>