I have implemented a scheme as described in the article here called "Building Dynamic Pages With Search Engines in Mind", where each category in a directory can be handled in a single script yet appear to have a directory/sub-directory structure in the URL instead of ?var=16 type stuff which search engines don't like.
I utilized my .htaccess to do this, as so:
<Files mydirectory>
ForceType application/x-httpd-php
</Files>
This causes all URIs with a /mydirectory/ name to go to a script called "mydirectory", etc... see the article.
My problem is that I seem unable to also set the error handling that can normally be put in .htaccess, i.e:
ErrorDocument 404 /error.htm
Whether I put this before the above tags, below them, or inside them, a 404 will cause Microsoft I.E.'s "This page cannot be found" template to display. Although this is different than getting my ISP's generic 404 page, which happens if the ErrorDocument line is not there, it still isn't doing what it's supposed to, which is to redirect to error.htm.
Does anyone know if it is possible to have both these functions within .htaccess, and how to do it?