Janwillem Borleffs wrote:
Adam King wrote: I've done the standard old trick of adding the error page line into
.htaccess which works absolutely fine if I accidently go to any
file other than .php But if I go to "doesntexist.php" I get a different
error message seemingly already installed somewhere on the server.
Does anyone know how to override this? There must be a setting
somewhere!
Are you getting a standard 404 error page? Then your host doesn't
allow htaccess override.
Test this by making a deliberate error in the .htaccess file, which
should trigger a 500 internal server error when the file is actually
interpreted.
JW
had the same problem. that works for me in .htaccess:
#php files
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) abs_uri_of_your_error_doc
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) uri_of_error_doc
RemoveType x-mapp-php4 .html
#html files
ErrorDocument 404 uri_of_error_doc
micha