Not sure if this should be on a PHP forum…just wondering how it can be done. Basically:
- 
User clicks on a link OR types the url in the address bar: www.mydomain.com/unknown-page 
- 
The url redirects to my custom page www.mydomain.com/404 
- 
The script emails me that a person landed on the 404 page. 
- 
Left to do: Track which link the user came from or clicked on that triggered the 404 error (in this case, www.mydomain.com/unknown-page) 
Is number 4 possible, either with PHP or JavaScript or the like?
