A "404 Error" happens when the web server you are on cannot find the page that you requested. This type of error is quite common and is seen all over the place.
404 Errors can be caused by many different problems, though generally they are caused by either dead links, or errors in the websites coding. Dead links often occur when a webmaster puts external links on his website, then the website he is referring to changes, moves, or no longer exists. Coding errors on the other hand can happen all over the place! Quite often webmasters neglect to check their links as they are making them, this means that there could be a spelling mistake in the URL, a missing slash or pretty much any typing error you could think of. It's good practice to check all links as you make them!
Internal links, or links to pages within the same website also get 404 errors from time to time. Unfortunately this is due to the webmasters neglect of his own website. If modifications were made to the website, he should have checked his website, or ran an automated program to check all of his links. Broken internal links look bad and unprofessional.
There are a few ways that a webmaster can mask his errors, or at least do some recovery work if an error occurs. If a webmaster changes the framework of his website he can create re-direct pages that will move the user to their the main index, or the updated version of the page that they requested. Additionally, they should be able to stop 404 Errors all together by creating an automatic forward whenever an error occurs.
A couple tricks for webmasters to help reduce the amount of 404 errors, or try to hide the errors is to modify the .htaccess file in their website directory. This file has one variable that can be set that will allow you to specify the page that you want to send the user, should a 404 occur.
Example: ErrorDocument 404 index.php
Example: ErrorDocument 404 404.php
The first example would automatically send the user back to the main index (if the main index was called index.php), and the second would send them to a customized 404.php file, which could display an error message, or send you an auto-notification of an error that happened. Keep in mind that if you use non-absolute directories that you may not feed out the correct page. For instance if the error occurs in a subdirectory on your website, and you specify index.php as your error document, there may not be an index.php in that subfolder, thus it might be a good idea to put the below example instead.
Example: ErrorDocument 404 http://www.yoursite.com/
Note: If you use Apache HTTPD you can setup the default error documents in the configuration file!
Ken Dennis
http://kendennis-rss.homeip.net/
"Oh, my eyes, my eyes! What an eye sore. Quick,... Read More
A long, long time ago? In a galaxy far, far... Read More
Cascading Style Sheets (CSS) allows you to create fast loading... Read More
Colors have long been known to have psychological affects on... Read More
Last Thursday afternoon I was working on a garage door... Read More
Any kid, and their grandmother too, can make a webpage.... Read More
To explain my point I need to first confuse the... Read More
I'm sure you've all heard the saying 'Build it and... Read More
There are two important reasons to build your website from... Read More
Writing for your web site is not the same as... Read More
Due to the large number of people offering website design... Read More
Here's the single most important part of your website: YOUR... Read More
Websites, there's literally billions of them out there in cyber-space.... Read More
It is a well-known fact that a successful business depends... Read More
I'm not a professional web site designer and openly admit... Read More
If your website is falling through the cracks, the chances... Read More
What do the key words represent?Key words - these are... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
They say the eyes are the window to the soul.... Read More
Content is undoubtedly the most important element of a website.... Read More
An attractive and user-friendly Web site is crucial to attracting... Read More
When considering whether or not to incorporate Flash into your... Read More
Getting traffic to your website is not the only factor... Read More
To create professional websites is not an easy task by... Read More
For those not familiar with CSS Hacks, they are ways... Read More
spotless home service Winnetka ...Thinking about designing your own website? Think again about adding... Read More
Here is a quick list of components that make a... Read More
Do you have a website? If so, you need an... Read More
Tips to brand your websiteInclude your logo in all pages.... Read More
In the of-line marketing world it is all about trying... Read More
Wether you design your business brochures, flyers, web page, or... Read More
Making your site accessible means making it available to be... Read More
You know... Before purchasing your product a person comes to... Read More
Sooner or later every small or medium business owner realizes... Read More
Want to know what the worst thing to say on... Read More
A web site builder can be a real life saver... Read More
Developing a software application is not easy at all; apart... Read More
Seeing is believing.One trick to increase your visibility as well... Read More
If you are reading this, I assume you either have... Read More
There is nothing wrong with making your own website if... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
CSS or Cascading Style Sheets has opened up tremendous possibilities... Read More
The effective design is this one, which is maximum simplified,... Read More
Whether you're hiring a designer who has created 10 sites... Read More
There are plenty of Drupal Modules that you can install... Read More
As part of your event planning you should seriously consider... Read More
In this article you will find the parallel between two... Read More
I taught myself HTML back in the mid-nineties and was... Read More
(Making Your Graphics Work For You)It's no secret that a... Read More
Over the course of the last decade, the Internet has... Read More
Web Design |