Project

General

Profile

Actions

Bug #16917

closed

.htaccess does rewrite of favicon.ico

Added by Stefan Geith almost 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2007-01-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The sample .htaccess does rewrite favicon.ico when using the default rules.
Solution: Add following line to _.htaccess:
RewriteRule ^favicon.ico - [L]

This gives unpredictable result, when you use Safari as a browser, because Safari allways calls favicon.ico after loading the page.
I had this problem (initiating many hours for searching the bug ...):
- I set a session variable to getIndpEnv ('TYPO3_REQUEST_URL')
- The plugin that sets this session variable is also placed on the homepage
- Because Safari calls favicon.ico after the call to index.php ... I always got magically changed values in session data. This is, because favicon.ico is rewritten to index.php ...
- Debug-output doesn't help, because its not shown for favicon.ico

Beside of this situation, I think it is a bug to rewire favicon.ico to index.php ...
Right ?
(issue imported from #M4883)

Actions #1

Updated by Michael Stucki almost 18 years ago

I totally agree, and therefore I just modified the line in the default .htaccess.

Thanks for the note!

Actions

Also available in: Atom PDF