Re: [cgiwrap-users] php-cgiwrap 404 errors
Brought to you by:
nneul
From: Jeff B. <soi...@sg...> - 2002-06-20 21:31:21
|
> When running php files wrapped under php-cgiwrap a missing page results in a > 500 Internal Server Error. Is it possible to force this to be a 404 Not > Found error? > > Thanks, > > Jeff > Well, I'm answering my own question here since I figured out a way to do it.... I created a custom 500 ErrorDocument that looks in the REQUEST_URI to see if it's looking for a file ending in "php". If the file does end in "php" then it sets the page's error codes to 404 Not Found and if doesn't end in "php" then it sets it to 500 Internal Server Error. Pretty basic. Jeff |