title: Using Silex without a vhost and Apache
body: <p>I am setting up my first Silex project using Fabien's skeleton on Github:
  <a href="https://github.com/fabpot/Silex-Skeleton" rel="nofollow">https://github.com/fabpot/Silex-Skeleton</a></p>
  
  <p>For some reason I can't create a vhost for this project, the silex project stays in a sub directory.</p>
  
  <p>My directory structure looks like this:</p>
  
  <pre><code>/my/example.com/htdocs/myapp/
        ../src/app.php
        ../cache
        ../config
        ../templates
        ../vendor
        ../web/index.php 
  </code></pre>
  
  <p>I want to access my app through the URL :
  <a href="http://example.com/myapp/hello/Fabien/" rel="nofollow">http://example.com/myapp/hello/Fabien/</a></p>
  
  <p>I have created a <code>.htaccess</code> file in htdocs/myapp</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     Options -MultiViews
     RewriteEngine On
     RewriteBase /myapp
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^ web/index.php [L]
  &lt;/IfModule&gt; 
  </code></pre>
  
  <p>Now I have urls like
  <a href="http://example.com/myapp/index.php/hello/Fabien/" rel="nofollow">http://example.com/myapp/index.php/hello/Fabien/</a></p>
  
  <p>How can I get rid of the index.php?</p>