gulliversfind.com gulliversfind.com gulliversfind.com
Site Home :> About Us :> Add Url :> Security & Privacy :> Terms & Conditions :> Add Article
Search:   
Add Url
 
 

Employment & Careers

 

Children & Teens

 

Software & Networking

 

Research & Science

 

Academics & Learning

 

Self Enhancement

 

Realty & Property

 

Business & Commerce

 

Issues & News

 

Culture & Art

 

Indoor Games

 

Automobile & Automotive

 

Lifestyle & Fashion

 

Travel & Accommodation

 

Policies & Law

 

Music & Entertainment

 

Shopping Online

 

Healthcare & Treatment

 

Health & Therapy

 

People & Society

 

Sports & Adventure

 

Home Family & Garden

 

Food & Recipe

 

Banking & Finance


 

Site Home › Software & Networking › Website Development
 

How to Customize Your Own 404 File Not Found Page

 
Author: Mark Nenadic

Weve all run into them, the dreaded 404 File Not Found error page. When you land there, there are a few things that you can do next. On average, what do you usually do first when you hit one of those pages:

Immediately click your browsers back button so that you can try somewhere else. Try to edit the URL youre attempting to visit and then see if you can head back a step and work your way to where you want to go. Write an email to the web designer of the website to inform them of the issue that youve spotted while navigating their site.

Let me guess what your answer was: You click the back button on your web browser. If youre like the majority of web users, then thats precisely what you answered. Most of us dont even realize that there are any other options out there than to go back to where we started.

Therefore, it would be awfully nice to be able to help this type of visitor to get back to your website in case theyve landed on an old link or have entered your URL improperly. You can edit and customize your own 404 File Not Found page so that it gives them the directions that they need so that they can get back to your site and find what they want.

Of course, there are a few things that youll need to have available to you if you want to customize that 404 File Not Found page. The first, and most important, is that you need to have a web host that enables you to edit that part of your website. Some will, but some will not. Before getting started, find out from your web host if they will make that option available to you. To find out, look into your hosting documentation and see if they mention anywhere the ability to customize or edit a file named .htaccess. If so, it will likely mean that you are able to customize your 404 File Not Found.

If your web host does permit you to edit the 404 File Not Found, then youre ready to get started. The following are the steps that you will need to follow:

Create/Modify your .htaccess file this might not always be necessary, but for some web hosts, its required. If you dont need it, then skip this step. If your server isnt an Apache web server, however, youll need to ask your web host what you need to do to have the server serve your edited file when a file on your domain cant be found. Otherwise, you simply need to add the following line to your .htaccess file:

ErrorDocument 404 /notfound.html

With that done, youll need to create a notfound.html in your main web directory. This will be what tells the Apache web server that when it cant find a file, then it should use that URL.

It only takes one .htaccess file in your main directory to cover your entire site and all of its sub-directories. However, if you want specific sub-directories to show their own 404 File Not Found messages, then you will have to create a separate one in each directory. The .htaccess file in any directory or subdirectory will override any other .htaccess files you have in any other directory or subdirectories.

Create the error file now its time to customize your 404 File Not found page. Let the visitor know that the link is not functioning, but dont stop there. Provide the visitor with alternatives. This should include a link to your main page. If you have a search engine on your website, this would be the ideal place to put a query box. This will make your visitors experience very simple because now they can simply type in what they want and theyll be sent there. If you dont have a search engine on your website or even if you do you might want to place a link to your site map, allowing your visitors to easily find what they want from the list. The point is simply to make sure that your visitor doesnt give up on you and head somewhere else.

Copyright 2006 Mark Nenadic

Author Bio:
Mark Nenadic is a well-known scripter. Mark likes to create articles about this industry.
You can search for this article using: web site development, web design & development, website development tampa
 
 
 

Related Articles

 
Microsoft Great Plains on Ctree or Pervasive SQL - What to Do - Tips for IT Manager
 
Advertise Locally Using Search Engines
 
Choosing a Good Webhost
 
Should You Care About Web Usability?
 
Effective Online Logo Designs
 
The Seven Secrets of a High-Sales Marketer
 
How You Can Land in the Top 30 of Google's Rankings Within 6 Weeks For Free
 
How to Market your Cleaning Services on the World Wide Web
 
Keyword Elite Master Your Adsense Campaigns
 
Welcome to Cyber Monday!
 
 
 
Site Home :> Security & Privacy :> Terms & Conditions  
Copyright © 2008 www.gulliversfind.com