Yii will call SiteController to display an 404 error if my site have some broken images or missing files (robot.txt etc.)
It is quite expensive loading while the site <img src="brokenimg.jpg">
because brokenimg.jpg will call SiteController/error function again to load the page out.
I have edit my .htaccess file with no luck.
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# Make backend accessible via url: http://site/backend.
RewriteRule ^backend backend.php
# If a directory or a file exists, use it directly.
RewriteCond %{REQUEST_FILENAME} \.(js|ico|gif|jpg|png|css|pdf|doc)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php.
RewriteRule . index.php
I don’t want the broken files can call Yii framework.