Single ErrorDocument directive to catch all errors (.htaccess)
Posted
by Mike Valeriano
on Stack Overflow
See other posts from Stack Overflow
or by Mike Valeriano
Published on 2010-04-10T00:27:53Z
Indexed on
2010/04/10
0:33 UTC
Read the original article
Hit count: 739
Hello.
Is there something like a wildcard directive to catch all possible errors and deal with them in a single custom error page?
ErrorDocument 404 /error.php?code=404
ErrorDocument 403 /error.php?code=403
...
ErrorDocument NNN /error.php?code=NNN #possible use of RegExp?
I know I probably won't be dealing with a lot of custom error pages here, but I'm curious about this.
© Stack Overflow or respective owner