I created a custom 404.php file and it's linked up and working. What I need now is for the error to email to me and I'm having issues. I've looked around and tried a few things and I keep getting the errors mailed to me, however I'm not getting the URL that they requested. The emails keep saying that people requested 404.php when they actually requested ss.htm which redirected to the custom 404 page. How can I get the missing page emailed to myself? Can anyone help me?
Sorry I will post the URL as well if anyone wants to read the page I found it on. http://www.evolt.org/article/Useful_Page_not_found_error_pages/4090/4299/
You've probably got the answer from the other posts but ... your 404 page is a PHP page so you're on the right track. If you var_dump($_SERVER); you will see that its an array with lots of info. Quite where the requested page is may vary from server to server but you'll find it easy peasy. Then just build the string you want emailed to you using \n and \t for new lines and tabs and use good old mail() to send it to yourself. Sarah