|
Answer
by: Kristen Jourdonais, Aplus.Net Knowledge Base Support
You
can allow users to view specified directories in their web browsers by
making an .htaccess file in the directory. Here is how:
- Open
Notepad (or any other simple text editor)
from your computer.
- Enter
the following in the file: Options +Indexes
- Save
the file as the file name: .htaccess
- Upload
the file into the directory you would like to openly have available for
browsing. If you have an existing .htaccess file in the directory,
enter the Options +Indexes line in the file.
Your
website visitors should now be able to see the directory listing.
For
example:
Let’s
say you have a folder called “images” in your html
directory, and you would like your website visitors to see the file
listing when visiting www.yourdomain.com/images. Before the .htaccess
file was added, your visitors would see:
|
Forbidden
You
don't have permission to access /images/ on this server.
You
may need to create an index.html page or enable the
directory browsing by creating an .htaccess file containing "Options
+Indexes".
|
After
you have uploaded the .htaccess file, the directory will be freely
displayed without this error.
Important: If you have a Windows-based hosting plan, you
cannot use .htaccess files.
|