View Full Version : Directory Listings...
Afkamm
08-29-2002, 05:55 PM
If i try to view a folder through my browser and all that's in the folder are jpegs, I get a 403 Forbidden page instead of a Directory List.
Is it possible to override this using the .htaccess file and if so what needs to be in it?
I'm trying all sorts here and nothing's working, so I thought I'd ask to make sure first that it can be done :D
Cheers
Marc :O)
Afkamm
08-30-2002, 07:56 PM
Everybody can stop worrying now, I was able to find what i was looking for. :)
For future reference, Directory Listings are off by default, but to change that simply put the following Options +Indexes into a .htaccess file and upload to the folder of your choice. :D
Marc :O)
Gade Terbob
11-21-2002, 02:41 PM
Afkamm,
I want to do exactly what you're talking about. Please tell me what the line in the .htaccess file should look like.
Afkamm
11-21-2002, 02:46 PM
Open up notepad and type the following on the top line with no spaces or returns afterwards.
Options +Indexes
Save as htaccess.txt, upload this file as ascii, then rename to .htaccess
Or you could just save as .htaccess and then upload :)
Marc :-)
Gade Terbob
11-21-2002, 03:02 PM
Thanks!!!!
admin
11-21-2002, 03:23 PM
You are exactly right sir. We have directory listings turned off by default because some users complained that visitors could see more of their sites than they wanted them to be able to. Thanks for sharing the knowledge with our other users.
admin
11-21-2002, 03:28 PM
Just a little more information.
Each directory can have a .htaccess file in it. The .htaccess file will apply to the directory that the .htaccess is in as well as all directories below it. So if there were a directory below the one with .htaccess that you wanted to disable indexes on, you would just add a .htaccess to that directory with
Options -Indexes
Afkamm
11-26-2002, 09:56 PM
You are exactly right sir. We have directory listings turned off by default because some users complained that visitors could see more of their sites than they wanted them to be able to.
EDIT:: Lets be nice ::EDIT
Noticed today funnily enough that Cpanel has a section called Index Manager (Under Access Menu -- Default theme. At the very bottom of main page -- Iconic theme. Under Site Management -- Blue Lagoon theme.) where you can select which folders you want to allow indexing. Can't seem to see it in the Xskin theme :-/
~~~~~edit~~~~~~
Can't see it in the Vertex theme, the Xskin theme has Index Manager at the bottom.
Marc :-)
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.