ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi there;
When I implement a web site, I would like to handle the broken links and put relevant HTML file. For example, when the visitor tries to reach non-existent link actually :
If you are using Apache, I'd recommend setting a ErrorDocument 404 /local/url/to/script instead. The custom error handler script receives all pertinent information about the failed request or missing page.
The trickiest implementation of a 404 (Not found) error handler I know (not currently used in production, though) tries a number of alternate servers to locate the corresponding page. Very useful when migrating and combining web servers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.