I have application written in Zend Framework and structure is
app/
application/
library/
public/
I have php script called test.php under public folder. When I access it via http://localhost/test.php it does index.php code as well. My .htaccess looks like this.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
It should stop when test.php found, shouldn’t it?
Missing favicon.ico caused invoke index.php. Adding favicon.ico solved problem.