Quote:
Originally posted by MrJackMeHoff
Sorry a bit off topic but im in a pinch to find this.
How do you pass the broken link in a 404 to a script? Here is an example:
ErrorDocument 404 404/404.pl?brokenlink=$LinkITried
|
I use
Code:
ErrorDocument 404 /index.php?module=error&code=404
and then when index.php is requested by Apache the environment will be as if the file which was not found existed. Take a look at for example the $_SERVER (PHP example) array when you request a 404 file.
I've seen it behave otherwise on other servers though, where the user plainly gets redirected to the 404 page instead. I assume it's some Apache directive for how to show error documents.