Custom 404 Error Pages |
Author: |
Message: |
rav0
Veteran Member
i have an avatar
Posts: 1419 Reputation: 29
35 / /
Joined: Aug 2003
|
O.P. Custom 404 Error Pages
How do I make a a 404 error page like Viking Tapes' custom 404 error page, with the auto suggesting? See the link, you'll know what I mean.
This post was edited on 07-09-2005 at 02:24 AM by rav0.
| |
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
|
|
07-09-2005 02:17 AM |
|
|
ShawnZ
Veteran Member
Posts: 3145 Reputation: 43
32 / /
Joined: Jan 2003
|
RE: Custom 404 Error Pages
Learn php, write a suggestions system
Use an opendir or something, index all files, and check them letter by letter to see if there close to the file spesified
This post was edited on 07-09-2005 at 02:23 AM by ShawnZ.
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
07-09-2005 02:22 AM |
|
|
rav0
Veteran Member
i have an avatar
Posts: 1419 Reputation: 29
35 / /
Joined: Aug 2003
|
O.P. RE: Custom 404 Error Pages
| |
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
|
|
07-09-2005 02:32 AM |
|
|
WDZ
Former Admin
Posts: 7105 Reputation: 107
– / /
Joined: Mar 2002
|
|
07-09-2005 05:16 AM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
RE: Custom 404 Error Pages
hmm another way (probley slower than the apache method) is to use pspell , add all the files to its dictionary then do a spell check on it.
Happy Birthday, WDZ
|
|
07-09-2005 06:58 AM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: Custom 404 Error Pages
OR, you could define the 404 Error page in a .htacces file lke this:
code: ErrorDocument 404 /error404.htm
And then when a page doesn't excist it will redirect to error404.htm in the directory where you have the .htacces file
Example for my website:
http://www.tsdme.nl/bullshitpagethatisntthere.htm
EDIT: I didn't read the website you provided correctly, anywaay, this is how to redirect to a 404
This post was edited on 07-09-2005 at 03:03 PM by Ezra.
|
|
07-09-2005 03:02 PM |
|
|
absorbation
Elite Member
Posts: 3636 Reputation: 81
– / /
Joined: Feb 2005
|
RE: Custom 404 Error Pages
or in cpanel it does it for you just give it the code in the error pages section
|
|
07-09-2005 03:07 PM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
|
07-09-2005 03:09 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: Custom 404 Error Pages
Yeah, I found out about that later , but I didn't delete my post because it's a easy way to make a custom 404, and someone might learn something
|
|
07-09-2005 03:20 PM |
|
|
rav0
Veteran Member
i have an avatar
Posts: 1419 Reputation: 29
35 / /
Joined: Aug 2003
|
O.P. RE: RE: Custom 404 Error Pages
quote: Originally posted by -dt-
he wasnt asking how to do 404 pages he was asking how to do 404 pages which suggest what file the user wanted.
But I needed to know anyway .
| |
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
|
|
07-10-2005 02:30 AM |
|
|
|