httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
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
messy.

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.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message