Shoutbox

Custom 404 Error Pages - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Custom 404 Error Pages (/showthread.php?tid=47354)

Custom 404 Error Pages by rav0 on 07-09-2005 at 02:17 AM

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.


RE: Custom 404 Error Pages by ShawnZ on 07-09-2005 at 02:22 AM

Learn php, write a suggestions system :P

Use an opendir or something, index all files, and check them letter by letter to see if there close to the file spesified


RE: Custom 404 Error Pages by rav0 on 07-09-2005 at 02:32 AM

[Image: msn_disappointed.gif]


RE: Custom 404 Error Pages by WDZ on 07-09-2005 at 05:16 AM

The link you gave actually just uses an Apache feature...

http://httpd.apache.org/docs-2.0/mod/mod_negotiation.html


RE: Custom 404 Error Pages by -dt- on 07-09-2005 at 06:58 AM

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.


RE: Custom 404 Error Pages by Ezra on 07-09-2005 at 03:02 PM

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 :P
RE: Custom 404 Error Pages by absorbation on 07-09-2005 at 03:07 PM

or in cpanel it does it for you just give it the code in the error pages section ;)


RE: Custom 404 Error Pages by -dt- on 07-09-2005 at 03:09 PM

quote:
Originally posted by Absorbation
or in cpanel it does it for you just give it the code in the error pages section ;)
quote:
Originally posted by Ezra
OR, you could define the 404 Error page in a .htacces file lke this:

;) both of you it may help if you looked at the website first , he wasnt asking how to do 404 pages he was asking how to do 404 pages which suggest what file the user wanted.
RE: Custom 404 Error Pages by Ezra on 07-09-2005 at 03:20 PM

Yeah, I found out about that later :P, but I didn't delete my post because it's a easy way to make a custom 404, and someone might learn something :P


RE: RE: Custom 404 Error Pages by rav0 on 07-10-2005 at 02:30 AM

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 ;).