post your comment   print   send to a friend
Rate:  68% | Views: 1257
Question categories:  Unix Plans

I would like my website visitors to see a directory listing when they try to access a certain directory in my web space. How do I allow this?

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:

  1. Open Notepad (or any other simple text editor) from your computer.
  2. Enter the following in the file: Options +Indexes
  3. Save the file as the file name: .htaccess
  4. 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.

Customer Feedback
Rate:  68% | Views: 1257 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Website Hosting | Domain Name Registration    Back to serch results
Browse the Base
Knowledge Base
Shared Hosting
  Unix Plans
    MySQL
Messages
 

Blogging at Aplus.Net

Don't forget to check out our blog ! Keep up to date at Aplus.Net.

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. I have a Unix-based shared hosting plan. How can I change permissions for files/directories using the File Manager?
 
2. How can I protect directories?
 
3. How to Set Up a Storefront ?
 
4. What are the permissions on files and directories?
 
5. In Unix, what is the find command, and how do I use it to search through directories for files?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest