title: how to Mod-rewrite php + Slim url to sub-directory
body: <p>I am using Slim 2.4 and php 5.3. My Directory Structure in localhost is something like this
  :</p>
  
  <ol>
  <li>Web Root
  <ul>
  <li>AppName
  <ul>
  <li>API
  <ul>
  <li>v1
  <ul>
  <li>include</li>
  <li>Slim   &lt;- Slim Framework</li>
  <li>tools </li>
  <li>.htaccess  (#1)</li>
  <li>index.php  (#1)</li>
  </ul></li>
  </ul></li>
  <li>Assets
  <ul>
  <li>css</li>
  <li>js</li>
  <li>img</li>
  </ul></li>
  <li>.htaccess   (#2)</li>
  <li>index.php   (#2)</li>
  </ul></li>
  </ul></li>
  </ol>
  
  <p>I wan to access <b>localhost/AppName/v1</b> that will open up <b>localhost/AppName/API/v1</b>. This is working partially as further parameters are getting ignored. When I am trying to get <b>localhost/AppName/v1/anyOtherVariable</b> it opens up  <b>localhost/AppName/API/v1</b> only.</p>
  
  <p>Now, #1 index.php contains all Slim code (routing and stuff) but #1 .htaccess is blank.
   #2 index.php contains a simple static homepage that contains some links. In #2 .htaccess I have written </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^v1(/.*)?$ API/v1/index.php$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I am really out of options.</p>