I have a simple 404 error page using asp classic that emails me when a user encounters a 404 error. I use Request.ServerVariables("Query_String") to send the url. I would like to improve this so that I know what page contains the link to the missing file or resource. Using Request.ServerVariables("Query_String") I only know that the requested url has not been found, but if there is a page with a bad link I would like to know that age's url as well so I can fix it. This would also help for pages that have missing images or other resources. Thanks for any help.
I should have said this was an Intranet. I can look through logs but getting an email sure is easier. I recently did a major cleanup, this site is 10 years old and had a lot of baggage. Occasionally I get an email that an htc, css or image was not found but I wasn't seeing the page that contained the link to the missing resource, just that the file was not found. Additionally, if there is a link to a page that has been removed, I want to know what page has that link.