dlf1987 Posted October 29, 2010 Share Posted October 29, 2010 I went in plesk and told it where my custom 404 page that looks like the rest of my site is. Works fine. On my 404 page i have a mysql insert that records data about the 404 page. But im having trouble finding the exact pages that are causing the 404's, ive tried using $_SERVER['HTTP_REFERER'], but that doesn't give me the correct page, ive tried getting the url of the 404 page, but that doesnt tell me what url caused the 404 error. thanks Quote Link to comment https://forums.phpfreaks.com/topic/217237-404-error-help/ Share on other sites More sharing options...
Pikachu2000 Posted October 29, 2010 Share Posted October 29, 2010 That information should be in the server logs, assuming you have access to them. Quote Link to comment https://forums.phpfreaks.com/topic/217237-404-error-help/#findComment-1128135 Share on other sites More sharing options...
dlf1987 Posted October 29, 2010 Author Share Posted October 29, 2010 i do, but id prefer storing the error page :/ Quote Link to comment https://forums.phpfreaks.com/topic/217237-404-error-help/#findComment-1128152 Share on other sites More sharing options...
Ninjakreborn Posted October 29, 2010 Share Posted October 29, 2010 Option 1: http://www.ibdhost.com/errors/ - Read that and do what it says. Option 2: Everytime there is a 404 error file, grab the server log file with PHP and scrape information on the latest missed page. Quote Link to comment https://forums.phpfreaks.com/topic/217237-404-error-help/#findComment-1128154 Share on other sites More sharing options...
Ninjakreborn Posted October 29, 2010 Share Posted October 29, 2010 I noticed that you marked your issue as resolved. I am glad you got it worked out. If you ever need anything else, feel free to post it in the forums. Quote Link to comment https://forums.phpfreaks.com/topic/217237-404-error-help/#findComment-1128168 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.