You are here: Foswiki>Bdc Web>HtAccessDirectoryIndex (27 Feb 2007, StefanoVita?)

How can I toggle the directory index feature for a folder of my domain?

If a URL which maps to a directory of your site is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then the browser will get an error.

  • If you want to show an empty page, put an empy index.html in your directory.
  • If you need to show the formatted listing of the directory you can activate the directory index option.

To add the directory index option to a directory and to all the subdirs, just put a file named .htaccess in the directory with the following line.

Options +Indexes

If a .htaccess file is already in your directory, then add the line.

 
This site is powered by FoswikiCopyright © 1996-2018 Yepa Inc. All material on this platform is the property of Yepa Inc.
Ideas, requests, problems? Send feedback