404 Error Pages: What Are They And How Do You Create One?

We've all seen them, you've been browsing a website and you click a link and nothing loads apart from the words '404 Error' along with the usual stuff.

So what is a 404 Error page? The 404 Error page, basically informs the user that the server cannot find the file they are looking for. However, instead of using the default 404 Error page you can create your own, this is how you do it.

First, you need your .htaccess file which should be within your web site directory. If you cannot find it you will need to create one. You will have to contact your host asking them how you would go about creating or editing this file. They may want you to use a text editor and then upload it, or they may want you to use a PICO editor and create or edit the file on the server.

How you have access to the .htaccess file lets edit it. Add this line to the .htaccess file:

ErrorDocument 404 http://www.yourdomain.com/404page.html

Make sure this line is kept on online. This is where your 404 Error page is kept.

Now you've change the .htaccess file you need to create the page. This is simply a normal HTML document. Once you've created the HTML document, save it and call it 404page.html. Now the next step is to upload the .htaccess file and the page to the server.

Now that is done your next step is to turn it on. This is done by setting the CHMOD attribute to 644. You can do this via telnet or some FTP programs. If your going to telnet into your server, use the following command:

chmod 644 .htaccess

Now test to see if it's worked. Just go to a page that doesn't exist on your server and you should see your new 404 Error page. If not, then make sure the CHMOD is set correctly, and if that doesn't help, you may want to ask your hosting company for support.

About The Author

I currently own and run a small E-commerce template website located at http://www.sjh-designs.co.uk. You can find several more guides located at http://www.sjh-designs.co.uk/guides.htm.

In The News:

Put Alexa and Siri to Work  The New York Times

Bluetooth Technology: Tips for Buying Headsets or Headphones

The technological horizon has always got something new to offer,... Read More

Basic Problem in a PC

I have a p3 500MHz PC with 128MB RAM, 10.2... Read More

Help, I Need a New HDTV! (Part 4 of 5)

Feeling overwhelmed in selecting a new TV? With all the... Read More

Freezing - Time To Warm Up Your PC

Freezing is also known as crashing or hanging. It's frustrating.... Read More

Use Your Computer For Your Entertainment Needs

By using your computer today you can find a lot... Read More

Portable Technology: Getting to Know the Treo

Up until the recent past, those who wanted to take... Read More

4 Computer Money-saving Tips

Tip #1 -- Rebates: A rebate is not always a... Read More

10 Easy Steps to Speed Up Your Computer - Without Upgrading

1. Empty the Temp directory regularly. To do this, make... Read More

How To Buy An MP3 Player

Are you looking for an MP3 player but am not... Read More

The Benefits of the New Firefox Browser

You probably heard of the new Firefox browser version 1.0... Read More

Keeping Passwords Secure

As the web has evolved, so have the methods of... Read More

Your Computer Cant Keep Time

A computer needs a certain amount of information to operate;... Read More

Have You Invited A Spy Into Your Computer?

Yes, it's true. You may have inadvertently invited a spy... Read More

Help, I Need a New HDTV! (Part 2 of 5)

Feeling overwhelmed in selecting a new TV? With all the... Read More

Looking For an MP3 Player?

If you don't have an mp3 player, and even if... Read More

The Many Benefits of Owning a DVR

Has This Ever Happened To You? OK.. it's Friday night,... Read More

Is Desktop Search Deserving?

Google, in their march to stay ahead of the pack... Read More

Three Things You Can Do to Keep Your Computer Running at Maximum Performance

Although there are many things that can affect the performance... Read More

How To Remove One Operating System from a Dual Boot Windows XP Computer

In Windows Xp, you can install two operating systems on... Read More

Virtual Memory - What is It?

I recently got an e-mail asking about virtual memory. The... Read More

Printing Multiple Copies of Photos

I do a holiday letter every year and send them... Read More

A Beginners Guide to Avoiding Viruses

"Aaaaaahhhhhh! I've been invaded by a virus!" Getting a virus... Read More

Review of Rio MP3 Players

Below you will find some useful information and comments about... Read More

Basic Computer Maintenance

One of the most common questions computer users ask is,... Read More

More Cool Web Tricks

If you ask most people what frustrates them most about... Read More