Apache makes it easy to create a custom 404 page for your Web server. Simply edit the file and then change the config file to point to it.
- Create a Web page that will be your 404 document.
- Open yourhttpd.conffile for editing (you'll probably have to login as root to edit it).
- Find the line that reads
ErrorDocument 404 /404.html
- Change the third entry to the URI you would like to display, e.g.
ErrorDocument 404 /new_404.html
- Restart your Web server.
What You Need
- Apache Web Server
- Text Editor