Hi. I'm trying to create a 404 Not Found error page in PHP, but want to use the varible that is the URL you came from. I think the Perl equivalent is $ENV{'REDIRECT_URL'), but it didnt work. So here's how it works:
I'm on http://www.mysite.com/index.html and click a link that goes to http://www.mysite.com/something.html, except something.html doesnt exist, and a .htaccess redirects it to 404.php. It redirects it and the page displays without a problem, but somewhere I want to add "Click Here to go back to the previous page" and I want click here to link back to index.html (or whatever page it was on) So what's line of PHP I would use to do this? Thanx