Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

So I have a .htaccess file in a subdirectory that contains a list of folders. In the main directory I have a .htaccess file that contains:

Options +Indexes
IndexOptions FancyIndexing
AddType text/html .php
Addhandler application/x-httpd-php .php
HeaderName /header.php

As a test inside header.php I have:


I still see "Index of [Directory]" instead of my static title, What Am I doing wrong?

EDIT: I've even tried echo "TEST THIS DIRECTORY"; and still does not work.

share|improve this question
I've figured it out, the .htaccess file was in a subdirectory so I added the following rules to the root .htaccess file and not the one inside the subdirectory –  fixnode Feb 10 at 2:59
Thanks for the update. –  dan Feb 10 at 5:55
@fixnode: You could post an answer (to your own question), and accept it, to take it out of the question queue. –  w3d Feb 10 at 15:40

Your Answer


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

Browse other questions tagged or ask your own question.