Hello,

This isn't exactly a php question, but you fine folks have helped me before, so perhaps someone knows this, as it is somewhat related.

I want to use the files and Forcetype commands in the Apache .htaccess file to have my root index.html file get parsed by the php engine.

I have:

<files index.html>
ForceType application/x-httpd-php
</files>

and it works fine. However, it also parses index.html files through the php engine that are not in the root directory... in other words, anywhere in the public_html folder where there is an "index.html", the php engine is called.

Is there a way to limit this to only happening to the root "index.html" file, and not some subfolder, say "pics/index.html"??

I tried

<files /home/myacct/public_html/index.html> and that didn't work.

I know it doesn't really matter to much, as it will still work, but if nothing I'm curious as to whether or not this can be done.

Thanks!!

~delphi

    Write a Reply...