Redirect to Apache default 404 page with mod_rewrite?
- by Pekka
Is there a way to actively serve Apache's default 404 page for a number of URLs using mod_rewrite? Not a custom error document, but a rule like
RewriteCond %{REQUEST_URI} ^/dirname/pagename
RewriteRule -- serve 404 page -----
I guess I could build a PHP page that sends the 404 header and have mod_rewrite redirect all the URLs there but I would…