Skip to content
Snippets Groups Projects
Commit 34fd475f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #174940 by gpk: don't generate 404s for favicons. Work around broken browsers ...

parent 4ac92043
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment