Hello
I am trying to work out how to do a rewrite test so
that I can send a different error response based on
the file extension requested.
If the file requested was a .jpg, and it is not
found, send a jpg "not found" file.
If the file requested was a .html, and it was not
found, send an html/text based 404 response.
Etc..
In apache I could use -f as a test for the existence
of a file, to fail and go to an alternate resonse.
However I an uncertain how to create such a rule with
light httpd.
Would rewrite even be able to catch it before the
built in 404 error system?
Any assistance greatly apprecciated!
Thanks
Nicole
|