[development] 404 handling

Morbus Iff morbus at disobey.com
Thu Mar 30 21:41:34 UTC 2006


>> handled by Drupal
>> <FilesMatch "\.(gif|jpe?g|png|html|css|js)$">
>>   ErrorDocument 404 default
>> </FilesMatch>
>>
>> This makes Apache handle 404 errors for typical html and image files.
>>
>> Should this be submitted officially?
> 
> I will agree that this is useful, with the suggestion that "html" 
> becomes "s?html?", for those using .shtml or .htm files.

In talking this over with [Zen|\|gatsby\|], I no longer think that 
.html, of any extension, should be included in this list. Drupal 
shouldn't give or generate 404s for broken *embedded* files that it 
ships with, like gif, jpegs, css, js, etc. just like you have. Good.

HTML files, however, are never embedded (I'll ignore, for the sake of 
sanity, crap like IFRAMES), and should receive the same 404 treatment as 
other "major" content, like those generated by a Drupal node.

-- 
Morbus Iff ( you are nothing without your robot car, NOTHING! )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
O'Reilly Author, Weblog, Cook: http://www.oreillynet.com/pub/au/779
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus


More information about the development mailing list