Don’t 4Get Your 404
Have you ever given any thought to your 404 page?
The 404 page is the error page that a server will display by default when a file (page) is not found on your Web site/server. You’ve probably seen your fill of these white pages with text that tells you to contact the webmaster.
Not Found
The requested URL /blahblah/blahblah.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.blahblah.com Port 80
What is frustrating is when you click on a link in your e-mail or elsewhere and hit a generic 404 page. There are no navigation or links to help you find what you were looking that has been moved or is missing. Since you weren’t at the site/server that created that error, because you clicked in from elsewhere, you do not have the option of hitting your back button to go to that specific site’s home page to try and figure out where the info you seek may be.
So here’s what you do! You create a 404 page that looks like the rest of your site or even have it be a duplicate of your home page. Anything is better than the above default server error message — to me that is opportunity lost!
By having your custom 404 page be the same as your home page or a special page with navigation or messages that cater to what most folks are looking for on your site, you can capitalize on the fact they are already on your server to get them to stay at your site and find what they are seeking. This is simple and easy to do with an .htaccess file.
All you have to do is create a blank file and name it .htaccess . Then, include the name of your 404 file within:
ErrorDocument 404 /404.html
Upload your new .htaccess file to the root of your server or where your Web site page files are located. File names change, get removed or moved on your Web site all the time. By having a custom 404 page you are able to keep visitors engaged who click on outdated URLs in search engines and elsewhere.
What I’ve described here is just one simple way to take advantage of an .htaccess file. For a comprehensive overview of how to use this file for all kinds of nifty things go here:
Comprehensive Guide to .htaccess
At your service,
Judith







