My site has subdirectories that include index.html files.
www.domain.com/.htaccess
www.domain.com/index.html
www.domain.com/otherstuff/index.html
I have the following in the .htaccess file to run some php code on my main index page, but I know it also affects the index.html files in my subdirectories. How do I write it so it applies only to www.domain.com/index.html?
<Files index.html>
AddHandler x-httpd-php5-cgi .html
</Files>
I found this: Precise targeting of the Filesmatch directive
But I'm not interested in using an alternative method like redirecting because it doesn't answer the question. I want to know if it's possible to do it this way and if it is, how? If it's not actually possible, then I'll know that for future reference and will always use an alternative.
Thanks!