I need to disable directory listing ability on one of my websites and would like to do this with .htaccess.
I also need to forward the user to a php file in the event of an error page. How is this done?
Thanks for your help! :D
.htaccess directory listing and error pages
Started by dirkfirst, Oct 16 2007 09:25 AM
2 replies to this topic
#1
Posted 16 October 2007 - 09:25 AM
|
|
|
#2
Guest_Jordan_*
Posted 18 October 2007 - 08:34 AM
Guest_Jordan_*
Remove Directory Listing
Options -IndexesForward to Error Page:
ErrorDocument 404 /error.php ErrorDocument 403 /error.php
#3
Posted 19 October 2007 - 01:07 PM
Yup, that is what I needed. Is it better to handle things like this in the http.conf?


Sign In
Create Account


Back to top









