Re: [EMAIL PROTECTED] Render an image for a 404 on images

2007-03-07 Thread matt farey
philguillard wrote: > Hi, > > Thank you guys. > Unfortunately i didn't succed with the Directory directive soluion > because of some other rewrite rules. > But with mod rewrite i succeded doing this: > > RewriteCond %{REQUEST_URI} /img/folder/(.*)\.jpg$ > RewriteCond /usr/local/apache2/htdocs

Re: [EMAIL PROTECTED] Render an image for a 404 on images

2007-03-07 Thread philguillard
Hi, Thank you guys. Unfortunately i didn't succed with the Directory directive soluion because of some other rewrite rules. But with mod rewrite i succeded doing this: RewriteCond %{REQUEST_URI} /img/folder/(.*)\.jpg$ RewriteCond /usr/local/apache2/htdocs/%{REQUEST_URI} !-f RewriteRule ^(.

Re: [EMAIL PROTECTED] Render an image for a 404 on images

2007-03-06 Thread matt farey
why not have a rewrite that says if the request is an image, and is not present, then redirect to the 404 images, you can capture the type of extension in the rewrite and direct to the appropriate pre-rendered image. philguillard wrote: > Hi, > > I'd like to render a specific 404.gif file when the

Re: [EMAIL PROTECTED] Render an image for a 404 on images

2007-03-06 Thread Joshua Slive
On 3/6/07, philguillard <[EMAIL PROTECTED]> wrote: Hi, I'd like to render a specific 404.gif file when the requested gif/png/jpg image is not found on the file system while other documents are still redirected to a 404.html document with "ErrorDocument 504 /404.html" directive. Is there a way t

[EMAIL PROTECTED] Render an image for a 404 on images

2007-03-06 Thread philguillard
Hi, I'd like to render a specific 404.gif file when the requested gif/png/jpg image is not found on the file system while other documents are still redirected to a 404.html document with "ErrorDocument 504 /404.html" directive. Is there a way to do that in http.conf? I can do it within my a