If directory listing is enabled on your site. You can disable it by following these steps:

To disable directory listing on Apache, you just need to add the following line to your .htaccess file:


Options -Indexes



by using the following commands:

  • Navigate to the website public html directory, using the "cd" command
  • list the files, , using the "ls" command
  • Use ".." (two periods) to access the directory just above your current directory.
  •  If you want to move quickly back to your home directory, rather than walking through the path to get there, simply type "cd ~".
  • Open the file you want to edit. To use Vim, type "vi .htaccess"
  • Understand the basics of Vim. There are two modes that Vim uses, Insert mode and Command mode. You'll do your actual text editing in Insert mode, while you'll use Command mode to copy and paste, navigate, save, quit, and execute other commands.
  • The bottom line of your window will show what mode you're in. It will display "-- INSERT --" if you're in insert mode. When you switch to Command mode, it will display a blank line that will be filled in by any command you type.
  • Learn how to navigate in Vim. Use the up and down arrow keys to move up or down one line. The left and write arrow keys will move the cursor left or right one character. In command mode, press "0" to jump to the beginning of the line and "$" to move to the end of it. Use "b" and "e" to move to the beginning and end of a word. Press "[" twice to jump to the beginning of the file, and "]" twice to jump to the end. Press "{" (Shift + "[") to move to the previous blank line and "}" to move to the next one. Type ":n" to jump to line number n (":5" will jump to line 5).
  • Enter Insert mode and start editing your text file. Press "i", "I" (capital i), "a", or "A" to enter Insert mode and start typing. "i" will let you insert text just before the cursor. "I" inserts text at the beginning of the current line. "a" will let you insert text just after the cursor, and "A" will let you type at the end of the current line. From there, you can type into your file just as you normally would.
  • While in Insert mode, press the Escape key to switch to Command mode. From there you can navigate more quickly, copy and paste text, save and quit, or execute any other command.
  • Save and quit. When you're finished editing your text file, press Escape to enter Command mode. To save your changes, type ":w" (for "write"). To quit Vim and return to the Terminal, type ":q". To save and quit in one command, type ":wq". To quit without saving your changes, type ":q!".