diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-06-26 19:19:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-06-26 19:19:44 +0000 |
commit | 34fd475f24824dc2052e3ab0d239fe0217e20e85 (patch) | |
tree | 9bc4cb42525dfa1da0c8e2f188d9e24857d42416 /.htaccess | |
parent | 4ac9204355f04b6763176b4468877de5a6f418be (diff) | |
download | brdo-34fd475f24824dc2052e3ab0d239fe0217e20e85.tar.gz brdo-34fd475f24824dc2052e3ab0d239fe0217e20e85.tar.bz2 |
- Patch #174940 by gpk: don't generate 404s for favicons. Work around broken browsers ...
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -13,9 +13,14 @@ Options -Indexes # Follow symbolic links in this directory. Options +FollowSymLinks -# Customized error messages. +# Make Drupal handle any 404 errors. ErrorDocument 404 /index.php +# Force simple error message for requests for non-existent favicon.ico. +<Files favicon.ico> + ErrorDocument 404 "The requested file favicon.ico was not found." +</Files> + # Set the default handler. DirectoryIndex index.php @@ -77,6 +82,7 @@ DirectoryIndex index.php # Rewrite URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] </IfModule> |