Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
r2982
I understand what it’s doing but can someone enlighten me on why please?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: r2982
As I understand it a request for a non-existent favicon will now return a normal 404 error generated by the webserver itself. This avoids needless execution of Textpattern to attempt to serve that file, so it reduces server load.
Offline
Re: r2982
Now why didn’t I think of that? ;)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#4 2008-10-05 08:51:43
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: r2982
Doesn’t the rewrite method in Textpattern cause 404 for every missing graphic? Even CSS images?
Would this help?
# TXP 404 page for missing pages
ErrorDocument 404 /404-error/
# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp|ico)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>
Last edited by FireFusion (2008-10-05 09:12:15)
Offline
Re: r2982
This would break if you upload an image on the files tab.
I think missing images (that are used in your design) is something that you should fix, not work around, while a favicon is still something a lot of websites don’t have, but browsers do keep looking for it.
Offline
Re: r2982
The effect of Textpattern-powered sites which lack a favicon is even more widespread: As the error_default
page template, which will be served from many sites as a response for an inexistant /favicon.ico
, contains a link to textpattern.com, our referrer log here gets littered with readahead browsers, spiders and bots travelling along that route.
Offline
Pages: 1