Commit b8c1bbd0 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#174940 by gpk: avoid calling up the full Drupal bootstrap for nonexistent favicon.ico

parent 7dc53556
......@@ -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
......@@ -94,9 +99,10 @@ DirectoryIndex index.php
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
# Rewrite URLs of the form 'x' to 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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment