Forum Moderators: coopster
I'm having trouble adding .html to the list of extensions parsed thru the php parser using .htaccess.
Whenever I add the line:
AddType application/x-httpd-php .html
or
AddType application/x-httpd-php .html .php
to the .htaccess file, the pages become inaccessible. I get a browser box prompting for a file download.
Could someone give a little help? I'm not the most technical webmaster.
Thanks in advance.
gperrones
I know the code you gave me works perfectly, I've already done that on other sites, but this particular hosting company has some kind of bug with it.
Is there another option or someone has a clue about what is misconfigured?
Thanks.
Another issue (perhaps just a personal peeve), but you shouldn't be parsing .html and .htm as php. This means that EVERY .html and .htm page will be parsed by the server regardless of whether it has php in it or not. This will add load and overhead to each page/process. Personally I stick .html and .htm as plain static HTML pages, and run .php .phtml and .php3 as php parsed pages. Just my $0.02.
Scott