I have the following .htaccess file: AddHandler server-parsed .html AddHandler server-parsed .htm Code (markup): What does that actually mean? What do I need to add if I want to run html files as php? Thanks, Jon
AddType application/x-httpd-php .htm .html Code (markup): Add this to your .htaccess to use a .htm or .html extension as php and the server will look for and process php code in your file. It can be handy. Just write the files like you would write any .php file.
This line means that all files ending in .html in your directory and every directory in your site will be parsed by the server looking for server-side includes.
So is php considered a server-side include? Oh, and is it on a directory based level? The current .htaccess is in the root folder. Do I need another one in /myfolder if the html file is in there?
Sorry...I slightly misread your post, and edited my response accordingly. PHP is not a server side include, although you can use includes in php. You only need one .htaccess in your public root. Any others you place in subdirectories will override the main one.
Thanks! It's a simple fix...considering the problems people deal with because of it, it's kindof surprising that they don't use the solution I mentioned as a default on server installs.