View Single Post
Old 09-27-2004, 10:20 PM  
EscortDate_Enoj
Registered User
 
Join Date: Mar 2002
Location: Norway
Posts: 87
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.
EscortDate_Enoj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote