Google Community Chat
 
Create custom 404 Error Pages

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.



(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum
   
Author Message
mustaq
Googler
Googler


Joined: 07 May 2005

2429.95 GC$

Items

PostPosted: Fri Oct 21, 2005 11:15 pm    Post subject: Create custom 404 Error Pages Reply with quote
Quote:
Create custom 404 Error Pages

Whenever a user mis-spells a page or foldername of a website, they get an error message. Some are simple server-generated ascii ones, and some are a full-featured page informing you of what you may have dont wrong and how to get back to a real page.

404 Error pages are pages you can make that replace the server generated one, and they are not difficult to make - 3 steps

Step 1
Make a webpage with whatever you want on it, (i would suggest it informs the user they they may have misspelled the adress, and giving it links to some of your other pages), and save it as 404.htm Upload it to your main folder (the one with index.html in it)

Step 2
For this step you must be the owner of the site's host. Go to the index folder via ftp/telnet and there should be a file called ".htaccess". If you dont have one there, create one (chmod it to 644 if you create a new one)

Edit this file in a plain-text editor. Look for this line and edit it, if the line isn't there at all than simply add it.
ErrorDocument 404 /404.htm
(This is case sensitive)

Step 3
Test it! Type http://www.yourwebistename.com/somerandomkeys and your 404 error page should be up and running.


Source
Source 2

[Source link added -Darren]
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
lordshaun
Noogle
Noogle


Joined: 27 Nov 2005

414.45 GC$

Items

PostPosted: Sun Nov 27, 2005 5:06 am    Post subject: Reply with quote
this was really helpful Very Happy
Back to top
View user's profile Send private message MSN Messenger
Sponsored Links
Posted: 3 Dec 2008 2:35 pm    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.