Actions
Bug #92237
closedRemove favicon.ico from URLs that stop rewrite processing
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-09-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
While analyzing my logs for 404 events, i detected a lot of requests to /favicon.ico
. Because I store this file in a different place, I decided to create a static route in the Site Configuration as described in the documentation (https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/SiteHandling/StaticRoutes.html).
Now a problem arises from the default .htaccess
settings: it stops rewrite processing when this filename is requested, and thus preventing the route to be executed:
# Stop rewrite processing, if we are in the typo3/ directory or any other known directory # NOTE: Add your additional local storages here RewriteRule ^(?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
I'd like to suggest the removal of the /favicon.ico
from this line:
RewriteRule ^(?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/) - [L]
It seems a little odd anyway to have it in here when one reads the comment..
Actions