Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm building a fairly large html site which relies on a lot of links between sections that need to be correct.

Is there any way I can check each link on a page and make sure that it doesn't return a 404?

share|improve this question
    
What OS are you working on? –  innaM Aug 13 '09 at 12:25

2 Answers 2

up vote 1 down vote accepted

One thing you might want to try is a tool for building an site map, these tools crawl your site to establish all the links etc and will report a 404 page. I use Google Sitemap Automater on the Mac, but I'm sure there are many windows versions that will do the same thing. They will then give you a list of links that point to 404 pages.

share|improve this answer
    
That did the trick, when you create the sitemap you can get a list of 404s! –  Tom Aug 13 '09 at 12:22

I use Xenu's Link Sleuth http://home.snafu.de/tilman/xenulink.html

Despite the "get used to" icon, it does this job very well. It crawls an entire site with multiple threads, there are Options what to include and what to exclude. Complete with a report at the end.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.