New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect root favicon.ico requests #24821
Comments
I disagree. Just tested it with Firefox and Chrome. If |
Request any file like a CSS or a JS directly: Apache log:
https://webdesign.tutsplus.com/tutorials/prevent-automatic-favicon-requests--cms-34762 |
Because |
Well, something is, as the Apache logs are full of it without that rule 🤔 |
@acsfer I figured it might be easy to add a redirect to the default |
@kesselb I checked to see if root-directory
The thing is, I'm running @acsfer if, per chance, you're running |
Not running snap. |
Hrm! Well, I did run into something interesting in the nextcloud-snap/nextcloud-snap#52
Perhaps plausibly additional directives could be added to |
As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen. The latest version can be seen by checking https://nextcloud.com/install/#install-clients and https://nextcloud.com/install/#instructions-server respectively. |
Browsers are very chatty and tend to always lookup for
/favicon.ico
.In the webserver, this logs a 404 for each request.
Solution
Insert a line like
RewriteRule ^favicon\.ico$ /core/img/favicon.ico [L,R=301]
in the
.htaccess
The text was updated successfully, but these errors were encountered: