In Apache 2, is the ordering between ErrorDocument and mod_rewrite defined and predictable? I can't find anything in the documentation about this.
For example, if I have the following in a .htaccess file (stripped down from the standard Drupal .htaccess file)
ErrorDocument 404 /index.php <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ index.php [L] </IfModule> which will handle a request for a /favicon.ico, the ErrorDocument or the RewriteRule? Will this always be the same, server-to-server, or can this vary based on how Apache is configured?