I have a catchall .htaccess directive like this:
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]
Anything that doesn't exist and the URL is rewritten back to the index page. This is fine, however I want the header to be sent a 404 instead of a 200. How would I do this?