favoritearticlesinc.com favoritearticlesinc.com
   Index >> About Us >> Privacy >> Terms of Use >> Add Url >> Submit Article
Search:   
Free links exchange
 
   

Drink & Food

   

Computers & Networking

   

Policies & Law

   

Property & Estate

   

Education & Learning

   

Investment & Finance

   

Health & Hygiene

   

Careers & Employment

   

Automotive

   

Self Help

   

Technology & Science

   

Art & Creative

   

Recreation & Entertainment

   

Business & Commerce

   

Lifestyle & Fashion

   

Healthcare & Medicine

   

Issues & News

   

Travel & Vacation

   

Malls & Shopping

   

Family & Home

   

Games & Play

   

Adventure & Sports

   

People & Society

   

Teens & Kids

 

Index –› Computers & Networking –› SEO
 

Creating a Custom 404 Error Page

 
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 error page must be specified and it must be relative to the root path of that account (remember, placing a / at the front of a file name or directory specifies that it's relative to the root directory).

To make a custom error page, simply create a page using your favorite webpage editor such as MS FrontPage or DreamWeaver. The page can contain anything you wish, such as images, links etc. Save the file as something easy to remember (such as 404errors.html)

I would then suggest you make a directory directly off your /public_html/ folder and call it 'error' and place your error files in here.

This would now mean that your .htaccess command line would now look like:
ErrorDocument 404 /error/404errors.html

Now whenever a 404 error was generated on your site, your custom error page will be displayed, and keep your web visitors happy.

In the upcoming article, I will expand on this idea, and show you how to you can receive an email notification that a 404 error has occurred on your site. It will tell you what caused the error, and the offending page. Allowing you to try and fix all broken links leading to your site.

Author: Bruce Hearder
 
Author Bio:

Bruce Hearder owns and runs www.online-money101.com Signup for the Online-Money101 newsletter and learn the simple techniques that everyday people like yourself use to make money on the web, every single day. Visit www.online-money101.com today

 
 
 

Related Articles

 
Ringtones Express Yourself With Sound!
 
Do You Want Someone To Know Your Secrets? Protect Yourself with a Firewall
 
Volvo and Men Share Logo??Jonathan Munk
 
What's the Big Hurry?
 
Anti-American Online Campaigns Pick Up Our Media and Run With It
 
Build Traffic And Ranking With Reciprocal Linking
 
Reasons to buy a flat panel monitor
 
Usining Pay per click advertising
 
7 Ways to More Business as an Online Spanish Translator
 
Business Web Hosting - Finding the Right Web Host
 
 
 
 
 

Yahoo! Does It Again? But We?re Not Sure What ?It? Is!

If you??ve searched with Y! lately ?C at least in some browsers ?C you may have noticed a new additi ... - Eddie SanMarco
 

Web Design

Web Design does not necessarily have to be as complicated as it may seem. With a little ingenuity an ... - Gordon Petten
 

Linear Motors and Stepper Motors

A linear induction motor is made up of an inductor which is made of individual cores with a concentr ... - Gordon Petten
 
 

Learning SEO

The different methods by which one would go about learning basic search engine optimisation techniqu ... - John Samuels
 

How To Earn Money From Your Web Site Or Blog

Just how does one make money from a blog or web site? What steps do you have to take in order to ear ... - Titus Hoskins
 
 
   Index >> Privacy >> Terms of Use
© 2008 www.favoritearticlesinc.com All Rights Reserved.