title: Some trouble with .htaccess and the removing of index.php
body: <p>I am working on a project that uses composer and yii. I'll show you some information about the environment. I dont understand why .htaccess works on other machines but not in mine. I think the issue it's me =). I hope someone can help me.</p>
  
  <ul>
  <li>folders</li>
  <li>my virtualhost</li>
  <li>.htaccess file</li>
  <li>yii configuration</li>
  <li>some stuff</li>
  <li>logs</li>
  </ul>
  
  <h1>Folders</h1>
  
  <p>The project has this folders:</p>
  
  <pre><code>~/Development/www/project/              - Project
  ~/Development/www/project/app           - Yii's index.php
  ~/Development/www/project/app/.htaccess - ...
  ...
  ...
  </code></pre>
  
  <h1>VirtualHost</h1>
  
  <p>Here my VirtualHost. I just put DocumentRoot, DirectoryIndex and ServerName. Is enough.</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost *:80&gt;
      ServerName project
      DirectoryIndex index.php
      DocumentRoot /Users/simonegentili/Development/Www/project/app
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <h1>.htaccess</h1>
  
  <p>This is our .htaccess file (our because I work with other developers). This works on Linux environment of others team members. Dont work on my machine with MacOsX. I dont think the issue is due to MacOsX, but I think the issue is due to my bad configuration. Thus, ... here our .htaccess.</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . index.php
  </code></pre>
  
  <h1>Yii configuration</h1>
  
  <p>This is my configuration file.</p>
  
  <pre><code>return array(
      'components' =&gt; array(
          'urlManager' =&gt; array(
              'urlFormat' =&gt; 'path',
              'showScriptName' =&gt; false,
              'caseSensitive' =&gt; false,
          ),
      ),
  );
  </code></pre>
  
  <h1>The stuff ...</h1>
  
  <p>The problem is that if I keep showScriptName to true, all works file but I see URLs like "http:// project/index.php/site/index". When URL become "http:// project/site/index" I get this error:</p>
  
  <pre><code>Not Found
  
  The requested URL /site/index was not found on this server.
  </code></pre>
  
  <h1>Logs</h1>
  
  <p>And finally, here my logs. I just get 404 error code. Why!?!?!?</p>
  
  <pre><code>127.0.0.1 - - [22/Aug/2013:12:05:34 +0200] "GET /site/index HTTP/1.1" 404 208
  [Thu Aug 22 12:05:34 2013] [error] [client 127.0.0.1] File does not exist: ~/Development/Www/project/app/site, referer: http://project/index.php/site/index
  </code></pre>
  
  <p>PS. You see that the referer is "http:// project/index.php/site/index" 'couse first I open "http:// project/index.php/site/index" on my browser and second I change config file and refresh the page.</p>
  
  <p>Can someone help me!?</p>