Index: .htaccess =================================================================== RCS file: /cvs/drupal/drupal/.htaccess,v retrieving revision 1.80 diff -u -p -r1.80 .htaccess --- .htaccess 30 Dec 2006 20:54:54 -0000 1.80 +++ .htaccess 4 Jan 2007 03:19:32 -0000 @@ -16,6 +16,13 @@ Options +FollowSymLinks # Customized error messages. ErrorDocument 404 /index.php +# The following line prevents Drupal's 404 handler from kicking in and doing +# a full bootstrap when certain types of files are not found. +# Uncomment the following to save server and bandwidth resources. +# +# ErrorDocument 404 default +# + # Set the default handler. DirectoryIndex index.php @@ -82,6 +89,8 @@ DirectoryIndex index.php #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]