Knowledgebase

How to enable directory listing in Linux website?

How to enable directory listing in Linux website?

Follow the below steps to enable the directory listing. 

Step 1: First, login to your home folder i.e. 'public_html' folder. 

Step 2: In the home folder, create a file named .htaccess. If the .htaccess file is already available in your home folder then skip this step. 

Step 3: Open the .htaccess file and add the below mentioned line in the last portion of the .htaccess file. 

Options Indexes 

Step 4: Now the directory listing will be enabled for your site. 
  • 1 Users Found This Useful
Was this answer helpful?