If say you're utilizing the popular:
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L,QSA]
And you're trying to make your mvc web framework handle 404's, if you don't find a corresponding view for a specified URI would you just manually send 404 http headers within the php application itself, right? Is this how it's done in Zend/Kohana and other frameworks?
Another question, let's say you rewrote an entire site and you want to setup 301s. Would you do that in the place where you configure your routes ( regex style like urls.py in Django ) or in the Virtualhost Directive?
Basically, should I ever have to modify the RewriteRules in the VirtualHost if my web framework is handling the routing?