I have some pages with .html extensions that need to be parsed as PHP because they contain some php code. I've put the following in my .htaccess file in my root web directory (because that's where the .html pages are):
AddType application/x-httpd-php .php .html .htm
That code works, but . . .
. . . I don't want to parse .html files as PHP in subdirectories of the root web directory. In other words, if I have a file located at /htdocs/file.html, I want it parsed as PHP. If I have a file located at /htdocs/subdirectory/file.html, I do NOT want it parsed as PHP. How do I do this? I tried adding a .htaccess file to the /subdirectory with the following line:
AddType application/x-httpd-php .php
but it still seemed to parse any .html files in /subdirectory as PHP
Thanks for any help.
--Jeff