This is not the only solution to know if your website got dead links.
For example, Awstats will tell you them too, but only from on site at the time.
Also, online dead link finders are you friends, like W3C Link Checker.
My solution works directly on the server, and also find the errors that come from a link in another site going to your site, on a non-existent page. You will also see how most browser ask a lot for « /favicon.ico » on your sites…
Use (command line interface) :
$ sudo php parseLogApacheError.php
$ lynx /tmp/errors404.inc.html
You can download the code here :

Laisser un commentaire