I've tried to look this up every way I could and couldn't find a direct answer to this particular question. I have some .htaccess rewrite rules for some friendly URLs and want to handle 404 errors that may occur in various ways.
First, here are a couple of the rewrite rules:
RewriteRule ^newsite/designer/([A-Za-z0-9_.%&-]+).html/?$ newsite/catalog.php?m=$1 [NC,L,B,QSA]
RewriteRule ^newsite/search/([A-Za-z0-9_.%'&-]+)/?$ newsite/catalog.php?kw=$1 [NC,L,B,QSA]
I would like to direct 404 errors for search/ differently than 404 error within designer/. Each having their own destination. But since these are not actual directories I can't just put a separate .htaccess file in the directoies.
Ultimately I want to have all other 404 not expressly redirected to go to the catchall, like
ErrorDocument 404 /index.php
Is this possible and how?