title: URL routing and directory redirects
body: <p>Consider the following lines of code used with a PHP framework (Slim Framework v2.0.0):</p>
  
  <pre><code>$app-&gt;get( '/bootstrap/(:page/?)', function ( $page = NULL ) use ( $app ) {
      if ( $page == NULL ) {
          $page = 'index';
      }
      $app-&gt;render( 'bootstrap-tests/' . $page . '.tpl' );
  });
  </code></pre>
  
  <p>Running it on XAMPP works like expected:</p>
  
  <p>/bootstrap redirects to /bootstrap/</p>
  
  <p>/bootstrap/ works fine</p>
  
  <p>/bootstrap/css-tests works fine</p>
  
  <p>Now, running the exact same code on the production server, <code>/bootstrap</code> ceases to work (no more redirect to /bootstrap/) and 404s instead.</p>
  
  <p>The production server is a Linux server. I've looked into .htaccess directives there (in order to compare them to XAMPP's) but do not see anything special about redirects.</p>
  
  <p>I'm not certain whether this is a framework thing or an Apache thing. Any feedback from someone a little more experienced than I am with frameworks and URL routing is welcome. </p>
  
  <p>Thanks. </p>