ComputerHunter.org

 

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.







Google News - Top Stories

Voice of America

Europe banks extend rally on state aid, US plan
guardian.co.uk - 1 hour ago
LONDON, Oct 14 (Reuters) - European bank shares rallied for a second day on Tuesday after a host of European countries pledged to support ailing lenders and US authorities looked set to follow suit, helping fuel a Wall Street surge.
Europe Factors--Shares set to extend rally on US plan Forbes
Stocks Soar 11 Percent on Aid to Banks New York Times
BBC News - The Desert Sun - San Francisco Chronicle - Boston Globe
all 1,226 news articles


AFP

For John McCain, another day, another strategy
Los Angeles Times - 2 hours ago
Stephen M. Katz / AP Stephen M. Katz / AP John McCain acknowledges cheers from supporters before he speaks to about 12000 in Virginia Beach, Va.
McCain rallies backers, saying he's a fighter San Francisco Chronicle
Obama, McCain duel over economic plans Chicago Tribune
AFP - Daily Press - Wall Street Journal - Washington Post
all 422 news articles


CBC.ca

Wind-Fueled Wildfires Threaten LA Suburbs
Washington Post - 2 hours ago
LOS ANGELES -- Two wildfires driven by strong Santa Ana winds threatened neighborhoods near Los Angeles on Monday, forcing frantic evacuations on smoke- and traffic-choked highways, burning dozens of mobile homes and causing at least two deaths.
Video: Mayor: Thank God for Our Firefighters AssociatedPress
Deadly wind-driven fires threaten homes The Desert Sun
Reuters - International Herald Tribune - Whittier Daily News - KSBW
all 3,831 news articles


Thailand to act in self-defense
Xinhua - 42 minutes ago
BANGKOK, Oct. 14 (Xinhua) -- Thailand's Foreign Ministry Spokesman Tharit Charungvat said Tuesday that If Cambodia resorts to use of force, Thailand will have to exercise its right of self-defense as provided under the Charter of the United Nations ...
Thailand denies withdrawal from disputed Cambodian border AFP
Cambodia: Thai troops retreat from disputed border The Associated Press
International Herald Tribune - Reuters AlertNet - Jerusalem Post - Radio Australia
all 601 news articles


stv.tv

Smith says 42-day detention plan not dead
Reuters UK - 44 minutes ago
By Michael Holden LONDON (Reuters) - The government will rush through emergency legislation to allow police to hold terrorism suspects for 42 days without charge in the event of a serious threat or an attack, Home Secretary Jacqui Smith said on Tuesday ...
Govt abandons 42-day detention plan AFP
Jacqui Smith defends emergency plan for 42 days detention Telegraph.co.uk
guardian.co.uk - Sky News - BBC News - Belfast Telegraph
all 760 news articles

Google
 

Copyright © 2006 Computer Hunter - A Division of Arthur´s Job Base