Bug #16917
closed.htaccess does rewrite of favicon.ico
0%
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)
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!