Forum Moderators: open

Message Too Old, No Replies

Help with Custom 404 Page

How do I create a custom 404 page

         

Dpeper

12:15 am on Jul 24, 2002 (gmt 0)

10+ Year Member



Hey,

I was wondering if any one had a good tut on building coustome error pages. I have no idea how to do it and thought some one here might have an idea.

Donny

Mardi_Gras

1:05 am on Jul 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you running Apache or IIS?

maccas

1:21 am on Jul 24, 2002 (gmt 0)

10+ Year Member



Put this in your .htaccess file if your are using linux
ErrorDocument 404 /somefile.html

and just make a page called somefile.html

If you dont have a .htaccess file already and your computer is running windows you proberbly have to name it htaccess.txt and change it to .htaccess once uploaded

dhdweb

1:30 am on Jul 24, 2002 (gmt 0)

10+ Year Member



On apache:

Custom Error Messages

Add the following to the .htaccess file:

ErrorDocument 404 [forexample-domain.com...]

After "ErrorDocument", specify the error code, followed by a space, and then the path and filename of the .html file you would like to be displayed when the specified error is generated.

Dpeper

2:42 am on Jul 24, 2002 (gmt 0)

10+ Year Member



thank you very much now my errors are even nice :)

sparrow

5:12 am on Jul 24, 2002 (gmt 0)

10+ Year Member



BEWARE!

You can not have FP extensions turned on or you will CRASH!!!!

There this first hand!