Preserved Topic: .htaccess questions (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: under your rug, |
posted 08-08-2002 22:54
Ok I want to put a .htaccess file in a directory to make it give the user a 404 error when they type in that directoy. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-09-2002 04:34
Synthetic: Might you be better off with a 403 as that is more conventional or is your heart set on 404? |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-09-2002 08:00 |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-09-2002 17:00
I think he's trying to pretend that the dir doesn't exist... |
Bipolar (III) Inmate From: some evil place, the evil little atoll |
posted 08-11-2002 00:33
RedirectPermanent /directory http://yoursite/404.html |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-11-2002 12:14
I think that's what he's trying to avoid... |
Bipolar (III) Inmate From: some evil place, the evil little atoll |
posted 08-12-2002 19:00
only way I can think up of is that or putting an index in there that fakes the server 404. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-12-2002 21:04 |
Bipolar (III) Inmate From: London, UK |
posted 08-13-2002 14:35
You should be able to fake a 404 error by using code: header("HTTP/1.0 404 Not Found");
|
Bipolar (III) Inmate From: Cold Sweden |
posted 08-15-2002 19:34
Maybe this can be useful: http://www.plinko.net/404/ |