Every web surfer has encountered the dreaded 404 page not found error message.
The generic error page is horrible to look at and it does not encourage web visitors to explore more of your site.
Imagine being able to setup a custom error message page that looked good, told the visitor what had gone wrong and then suggested some alternative links to other locations on your site, such as the home page, sitemap or even a search page.
If the visitor wanted to, they could then visit other parts of your site.
It is very easy to setup a custom 404 error page (The 404 error is the error number returned when a page or directory is not found on your site).
The easiest way to redirect visitors that encounter a 404 is to either send them to your sites home page or to your sitemap page
We do this by placing a one line of code in your websites .htaccess file
ErrorDocument 404 /sitemap.html
This would redirect all 404 error messages to the sitemap page.
The path to the page you want to display, must already exist on your web server, otherwise the web server will tie itself up in a never ending loop.
The full path to the...