httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] errordocument for images?
Date Mon, 20 Oct 2003 05:40:04 GMT
John Smith wrote:
> Is it possible to use different "not found" files
> according to the file requested? I'd like to use a
> "not found" image for images, and a "not found" html
> file for everything else.
> I suspect it might be possible with mod_rewrite, but I
> don't see a variable that might contain a response
> code (404) that could be used with RewriteCond.

You possibly could, but I wouldn't recommend it; it would could get really

A better suggestion is to use a PHP- or CGI-script that kicks in on all
404s. It could then examine the original REQUEST_URI variable, to output the
proper document.

Robert Andersson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message