title: Slim Framework always return 404 Error
body: <p>These days i'm using <strong>Slim Framework</strong> as my simplest tool to develop the php web api.
  Using these two articles:</p>
  
  <ul>
  <li><a href="http://coenraets.org/blog/2011/12/restful-services-with-jquery-php-and-the-slim-framework/" rel="noreferrer">Coenraets</a></li>
  <li><a href="http://codingthis.com/programming/php/using-the-slim-php-framework-for-developing-rest-apis/comment-page-1/#comment-24213" rel="noreferrer">CodingThis</a></li>
  </ul>
  
  <p>I follow some of the steps from there. Downloading the Slim Framework, putting the correct directory &amp; files. Adjusting the initation statements such as;</p>
  
  <pre><code>//1. Require Slim
  require('Slim/Slim.php');
  
  //2. Instantiate Slim
  $app = new Slim();
  
  //3. Define routes
  $app-&gt;get('/books', function ($id) {
      //Show book with id = $id
  });
  </code></pre>
  
  <p>And then, I modify the rest accordingly. </p>
  
  <p>Such as my checklist that already done:</p>
  
  <ul>
  <li>LoadModule rewrite_module modules/mod_rewrite.so -> enabled</li>
  <li>Slim .htaccess:</li>
  </ul>
  
  <blockquote>
    <p>RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule
    ^(.*)$ bootstrap.php [QSA,L]</p>
  </blockquote>
  
  <ul>
  <li>httpd.conf: <a href="http://pastebin.ca/2128997" rel="noreferrer">(Shared Link).</a></li>
  </ul>
  
  <p>But, after Once I run this statement;</p>
  
  <pre><code>$app-&gt;run();
  </code></pre>
  
  <p>And I run it on my browser.... then, I got <strong>404 Error</strong> while testing it on my Localhost. What's the solution for fixing that?</p>
  
  <p>FYI, here is my simplest PHP file that i'm currently using it. <a href="http://www.text-upload.com/read.php?id=310286&amp;c=9624149" rel="noreferrer">(shared Link)</a></p>