PDA

View Full Version : change special htaccess to SHOW a directory



arbogator
06-21-2007, 02:07 PM
Hi, I try for some time now. In vain. The items I find with google won't help.

A htaccess is in the top directory to prevent directories to be listed. That works.

Now, in one special directory for technical reasons the directory must be listed. But the commands like

Optiions +Indexes

in htaccess do not work.

How can that be solved?

Thank you

sjlplat
06-21-2007, 04:57 PM
Make sure to create a new .htaccess file for that directory with the appropriate settings.


Options +Indexes
IndexOptions +FancyIndexing

Double check spelling and case.

arbogator
06-21-2007, 07:09 PM
Thank you, but that does not work.

Would you please show me a complete htaccess?

Seems that a "surrounding" parameter is wrong.

Thank you

arbogator
06-21-2007, 09:19 PM
I found a way.

root dir:

-------------------------------
<Files .htaccess>
Order allow,deny
deny from all
</Files>

Indexignore /
Options -Indexes
IndexOptions -FancyIndexing
-------------------------------

in the special dir:

-------------------------------
Options +Indexes
IndexOptions +FancyIndexing
-------------------------------


My mistake was to use

Indexignore *

In the subdirs this could not be overridden. But
/
was only at the top. And

Options -Indexes

sufficed to make all dirs invisible.

I am sure that I am not only one with this topic. So, please put it at a good visible place.

arbogator