Print this article
  Email to friend
404 Error Pages-What are they and how do you create one?
Author:


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

   ( Next Page )


Rate this article:  (No ratings yet)

 Saving ...

RECENT ARTICLES FROM COMPUTER PROGRAMMING CATEGORY
Websites and Scroll Bars. (Author: Lee Asher)

Does your website have scroll bars? It might not seem like an especially important question, but it is. In fact, when it comes to website usability, the question of scrolling is one of the most vital ...


Selecting the Best Web Design Language for Your Project (Author: Shelley Lowery)

If you'd like to create and publish your own web site on the Internet, your first step should be to decide what type of web site you would like to create and what web design language you would like to ...


Why I Switched to A Tableless Design (Author: Karen Blundell)

Since I made the switch 6 months ago to a tableless design on my main site, I've noticed some interesting things: * My search engine rankings have dramatically improved * My bandwidth usage ...


Banner Design Success Techniques (Author: Warren Baker)

Banners have been a major part of the World Wide Web world since its early days. Copywriters burn the midnight oil looking for new designs that will grab the visitor's attention and compel him to click ...


Improve Your Visitors Experience - Add Scripts to Your Website (Author: Gavyn Stewart)

For new webmasters, adding third-party software and scripting to a website can be a really scary proposition. I remember when I put my first scripts on my own website. Even with my basic dos programming ...


SEARCH
Search for:


In:


NEWSLETTER
E-mail address:


Name:


Copyright ©2007 HyperArticles.com. All Rights Reserved. - Privacy Policy - Disclaimer