Member Area   WebMail   FAQ   Search   Profile   Log in to check your private messages   Log in   Register E-RICE.net
Author Message
Custom error 404 pages - page not found
E-RICE.net Members Community Forum Index -> Web Coding & Design Reply to topic
auctionhugh
PostPosted: Thu Feb 25, 2010 21:24  Reply with quote



Joined: 27 Aug 2002
Posts: 217
Location: Kalamazoo, Michigan

I searched the forum and could not find this info.

If you want an error page that says something besides "page not found" in black letters on a white screen, create the page in your web design program. Name it something like

error404.html

Send it over to the root folder of your website, the same folder that has index.html in it.

Then create a text file called .htaccess

In the text file put the one line:
ErrorDocument 404 /error404.html

Send that over to your e-rice hosted website also, in the same folder as your index page.

NOTE if there is already a file by that name, do not overwrite it! Get that existing one, add the line to it, then send it back over.

Now when people click on a bad link on your site or type the page in wrong, they will see the error404 page.

NOTE that the .htaccess file can be a very powerful tool that if used incorrectly can open up your website to being vulnerable. If you are not sure what you are doing, get help.

There are other error pages you can create as well, but the 404 seems to be the most important.

Here is an example of what I am talking about:

http://www.kalamazoochuck.com/thispagedoesnotexist.html

Hope this is helpful. If you need a very professional yet not inexpensive website, do not hesitate to call on us.

Chicago Website Designer
Website Design Chicagoland
Web Designers chicago area
Chicago Web Site Design
Web Designers Chicagoland
Website Designers chicago area
_________________
Professional Web Design by AuctionHugh's Wife Kathleen
Artistic - Straightforward - EASY for You!
Click for Examples and Pricing:
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Reply to topic

View next topic
View previous topic
Page 1 of 1
E-RICE.net Members Community Forum Index -> Web Coding & Design

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



- Powered by phpBB © 2001, 2002 phpBB Group