Hello, I am trying to run a PHP script on an html page and I have figured out that I need to add the following to my htaccess file: AddHandler application/x-httpd-php .html So I did that and it allowed the PHP script to run as needed, but it also blocked another AddHandler from running, which I use for html include files such as sitewide navigation and ads. This is what my htaccess file looks like: Options +Includes AddHandler server-parsed .html AddHandler application/x-httpd-php .html For whatever reason the Options +Includes AddHandler gets blocked when I add the PHP AddHandler, which means the sitewide include files do not display as they usually do. Is there a way to have both AddHandler commands running without one blocking the other? Thanks for any help...
While I can't quite say what's making it behave in the "undesired" manner since it sounds like it's behaving exactly as you have it written -- only the latter of those two declarations should work given they have the same TARGET (.html) But that said I wonder why the **** (no offense) you would make ALL HTML files run through the PHP parser. Just bound and determined to make the server work twice as hard on static files that should NEVER be processed by the parser? I'd say the problem isn't with how you're doing it, but with what you are trying to do in the first place; something goofy that shouldn't EVER be done.