htaccess question
I usually pay people to design our sites and then pay someone else to manage them. but this time i am doing my own little personal project site by myself and there are a few things that i am not sure how to do. mainly i want to know how to protect some of the directories without blocking access to their contents. for example, lets say that i use the directory "/pics/" as the image directory and i want people to be able to view the pictures in it (linked from pages on the site) but i don't want people to be able to view a list of the contents of the folder by typing in "domian.com/pics/". how do i stop it from listing the directory's contents? I am pretty sure you can do it by adding a separate htaccess to that directory but i don't know what to put in that htaccess that keeps it from displaying the list of what it contains while still showing the pics. does that make sense?
final example:
typing in "domain.com/pics/image1.jpg" shows the picture image1.jpg
but
typing in "domain.com/pics/" = access denied or something similar
how do i do this?
__________________
I am the fourth Horseman.
If someone offers you an amazing hosting deal, call WEBAIR before you choose. You won't be sorry. 
|