Get rid of "Index Of" Pages
- Started
- Last post
- 9 Responses
- ScottTheRobot
Is there a way to get rid of those 'index of' file listing pages that come up when a folder address is accessed directly without having to put an index.html page in every directory?
- loahn0
Are you able to switch off "enable directory listings" or similar on your server?
- ScottTheRobot0
I just signed up with bluehost.com, so i am searching around the control panel for something - but, not finding anything like that.
- rabattski0
what loahn said. talk to your provider. however i wouldn't switch it off because sometimes an open dir can be very handy so i use either an index file or an .htaccess file if i need the folder to be closed.
- rabattski0
btw if i'm not mistaken you can switch it off for your entire server by using an .htaccess file in the root. not sure. let me check it out quick.
- ScottTheRobot0
.htaccess file - ah ha, that's it!! Thanks, I got it going now.
- rabattski0
you have it working already? that's quick.
i know it's by using Options -Indexes but i don't know if it works recursive.
- index0000
Phew thought that was going to be a campaign to 'get rid of Index000'.
!
- ribit0
...and you can turn listings on again for selected directories by using Options + Indexes in those directories.
- ********0
there must be some ?trick to list any folder contents in a browser... no?