The web is all about usability, consistency and speed... well, that's what we'd like to think anyway. In this article John shows us how to stop those dreaded 404 errors from plaguing our Apach-based web sites. With a bit of PHP and a htaccess file or two, your site will be free of 404's forever!
The web is all about usability, consistency and speedů well, that's what we'd like to think anyway. Unfortunately the web isn't a perfect haven for anyone, and if you run your own web site, then there's many a way that you can do your part to help make the web a more useable and consistent information/communication medium.
In this article I'm going to show you how you can use one feature of Apache to stop those dreaded "404 File Not Found" errors from plaguing your web site. 404 errors are one of the top reasons why visitors leave a web site, and with a bit of PHP and htaccess, your site will be free of 404's forever.
To implement the technique described in this article you should have access to a web server running Apache and PHP version 4.1 or above. The web server can be either a Windows NT/2000 server or a Unix/Linux server, such as RedHat or Mandrake.