title: silex framework and .htaccess, obtain error 403 access forbidden
body: <p>I decided to prove the silex framework. I placed the index.php file, .htaccess and the library silex.phar in the same directory that I called "prova". </p>
  
  <p>But when in my browser I visit the url "localhost/~username/prova" I obtain the error 403 Access Forbidden.</p>
  
  <p>What's my error?</p>
  
  <p>Below the code that I have used in my app.</p>
  
  <p>The index.php file</p>
  
  <pre class="lang-php prettyprint-override"><code> &lt;?php
  
   require_once __DIR__.'/silex.phar';
  
   $app = new Silex\Application();
  
   $app-&gt;get('/hello/{name}', function ($name) use ($app) {
      return 'Hello '.$app-&gt;escape($name);
   });
  
   $app-&gt;run();
  </code></pre>
  
  <p>And .htaccess file</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine On
     #RewriteBase /path/to/app
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ /index.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>