Index: .htaccess =================================================================== RCS file: /cvs/drupal/drupal/.htaccess,v retrieving revision 1.78 diff -u -F^f -r1.78 .htaccess --- .htaccess 29 Nov 2006 06:16:14 -0000 1.78 +++ .htaccess 20 Dec 2006 22:04:20 -0000 @@ -7,6 +7,12 @@ Order allow,deny +# The following line prevents Drupal's 404 handler from kicking when certain types of files are found. +# This saves both server and bandwidth resources + + ErrorDocument 404 default + + # Don't show directory listings for URLs which map to a directory. Options -Indexes @@ -82,6 +88,8 @@ #RewriteRule module.php index.php?q=%1 [L] # Rewrite current-style URLs of the form 'index.php?q=x'. + + RewriteCond %{REQUEST_URI} !\.(png|gif|s?html|jpe?g|css|js|cgi|ico|swf|flv)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]