[development] 404 handling

Darrel O'Pry dopry at thing.net
Fri Mar 31 00:36:45 UTC 2006


Drupals 404 handler could be modified to return files of an appropriate
mime type... defaul missing images etc...Its something I was thinking of
implement in some file work I'm doing.


On Thu, 2006-03-30 at 16:41 -0500, Morbus Iff wrote:
> >> 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.
> 



More information about the development mailing list