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

closed as off-topic by Stephen Ostermiller Jan 16 at 21:02

  • This question does not appear to be about webmastering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the 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 '14 at 2:59
Thanks for the update. –  dan Feb 10 '14 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 '14 at 15:40
I'm closing this because it was due to a mistake in which directory the htaccess file was in. You indicate that you fixed the problem and no longer need assistance. –  Stephen Ostermiller Jan 16 at 21:02

Browse other questions tagged or ask your own question.