we can track 404 error simply using three technique.such as , keep a log file, if there is an error redirect user a nice page where we show 404 error nicely,so that user can not feel bother!. we can also use a robot.txt file.

Log Files - Web Server log files help in tracking the 404 errors. These standard log files are just ASCII text files that have each HTTP protocol transaction, whether completed or not, recorded in them. Most of the HTTP errors are recorded in the transfer log and the error log files. If you have access to the log files of your website, you can observe the HTTP status code field. This field gives you an idea about the occurrence of 404 errors, their frequencies, consistencies, and also the referred document that led to the errors. Also find out the existence of any broken link on your site and the misspelled URL that led to the error. When you know all these information, you can easily correct the link and prevent 404 errors on your website.
Redirects – If you find a page that is consistently getting a 404 error, you can create a redirect page using the .htaccess file that automatically takes the users from an older page to its newer replacement. You can use Permanent and Temporary Redirects to "catch" old referrals from other sites and send the visitors to their intended information.
Robots File - If you have a section of your site with pages that are frequently changed, you can block the search engines from indexing them in their databases using robots.txt file so that you can prevent 404 errors.
Like our site? Be a member of Coolajax fan page to get daily posts updates!
You May Like This Posts!
Tags:
tracking 404 error,preventing 404 error, server,error,solve,404 error, solution, fix-up, log file, redirects, robot.txt
Total Read: 758 Topics