Hi all,
I noticed that using the .htaccess file proposed in the Zend Framework docs
and quickstart causes the bootstrap file to be called more times in the same
request, thus resulting in a little increase in overhead.

I found out this issue while debugging my application using FirePHP because
the log pushed by the bootstrap were showed multiple times in my console.

Switching back to the old kind of .htaccess file resolved the issue.

The issue happens when the page load a png (as a standard object using the
<img /> tag in the page) and a html file (using Dojo) maybe because
the RewriteCond
evaluate to true (or false, I don't know rewrite files) causing the
last RewriteRule to be
avaluated (thus calling the bootstrap process again).

That's the problematic .htaccess:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]


I solved the problem using again the old kind of .htaccess:

RewriteEngine On
RewriteBase /
RewriteRule !\.(js|ico|gif|jpg|png|css|flv|swf|html|html)$ index.php

Should I file the issue in the tracker or is it a known issue/feature?


Andrea Turso

Reply via email to