Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to configure XAMPP to show all files and folders in a given directory, even index files. But when I browse to the directory, index.php is run automatically instead.

What settings can I use in the .htaccess file to make it work?

share|improve this question
up vote 2 down vote accepted

Just add DirectoryIndex disabled to your .htaccess file. That'll prevent Apache from looking for default index documents when the client requests only a directory, without a filename.

See here for more information on the DirectoryIndex directive.

Also note you'll have to enable directory browsing, otherwise you'll get a "permission denied" error.

share|improve this answer
thnx a lot is there any way to list the owners and permission too ? – Sam Sep 2 '12 at 18:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.