UBB.Dev
Hi I have set up my web site so that if there is an "Internal 500 Error" from a cgi script, it goes directly to an "error page" that is a HTML file where I can put anything on it.

Is there any way I can put some code in this "error page" that will record the URL that was clicked (hence the cgi script being called by that URL) to enable loading of this "error page"

I assume it can be done by Javascript or some Apache ENV variable? Thanks in advance!!
Easy, just write a script that uses the environment variables

eg:
$remote_host = $ENV{'REMOTE_HOST'};
$referral_address = $ENV{'HTTP_REFERER'};

then just print the results to a file on your server.

Only a few lines of code!
© UBB.Developers