![]() Preserved Topic: .htaccess questions (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: under your rug, |
![]() 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 |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() I think he's trying to pretend that the dir doesn't exist... |
Bipolar (III) Inmate From: some evil place, the evil little atoll |
![]() RedirectPermanent /directory http://yoursite/404.html |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() I think that's what he's trying to avoid... |
Bipolar (III) Inmate From: some evil place, the evil little atoll |
![]() 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 |
![]() |
Bipolar (III) Inmate From: London, UK |
![]() 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 |
![]() Maybe this can be useful: http://www.plinko.net/404/ |