Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 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
add comment

Your Answer

 
discard

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.