View Full Version : 404 File not found
Weapon
December 15th, 2000, 01:43
Does anyone know where I can get the scripts where if you go to a page that doesn't exist it pops up a 404 file not found thingee
ashben
December 15th, 2000, 03:33
I don't think its a special script. All you need to do and if your host supports it, is to place a custom missing.html or 404.html page in your root directory.
Weapon
December 15th, 2000, 15:06
No I just added a 404.html to my root directory but nothing happened, I also tried renaming it to missing.html but that still don't work anybody know the script?
Peo
December 15th, 2000, 15:24
Try to create a file named .htaccess and in this file put:
ErrorDocument 404 /404.html
where '/404.html' is the location of your 404 missing file. The .htaccess file should be in your main directory.
this may differ depending on your server.
Chicken
December 15th, 2000, 19:08
It certainly isn't a script. If this doesn't work then 99.9% of the time you are not setting up what Peo posted correctly. The server may not allow you to set it up, but if you do everything right and it doesn't work, email your host.
niv
December 17th, 2000, 13:17
umm...anyone here uses .htaccess files?
.htaccess should contain for it to work (customized 404/403/400/401/500 error pages):
ErrorDocument 400 /400.html
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
.htaccess also can ban non-authorized users from certain directories and files with a .htpasswd file working along with it
Chicken
December 18th, 2000, 01:15
Originally posted by needcgispace
umm...anyone here uses .htaccess files?
Yes.
Maurice
January 2nd, 2001, 11:30
When someone clicks on a link to a page that doesn't exist, this script logs the URL of the page that they came from and sends them to a page that you specify. You can then view the log, and fix any dead links.
Here is the link:
http://www.shavenferret.com/scripts/404/frame.shtml
Good Luck.
Mrh0ax
January 2nd, 2001, 11:35
here is a list of ALOT (over 50) HTTP error codes :)
http://offline.home.cern.ch/offline/web/http_error_codes.html
Powered by vBulletin® Version 4.1.7 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.