I added the next line to .htaccess:

AddType application/x-httpd-php .html .htm

After I attempt to load any page quietly, my browser attempts to DOWNLOAD the page! What shall we be held doing wrong?

Thanks!

Probably you do not have the PHP module loaded for the webserver. Which means that then your server finds a application/x-httpd-php file, it passes it straight to the customer rather than running it via a PHP interpretor (which may run any PHP code and output a text/html content type). Since browsers don't include PHP interpretors, they address it every other unknown content type, and provide in order to save it to disc.

HTML documents ought to be offered to browser as text/html. Improve your MIME type.

AddType text/html .html .htm

If you are attempting to execute HTML files as PHP, you need to alter the file extension to *.phtml.

  • *.html - HTML content
  • *.php - PHP content
  • *.phtml - HTML quite happy with embedded PHP scripts

If you are attempting to pressure the PHP parser to operate on these file types, you ought to be editing the httpd.conf file on Apache to incorporate the application/x-httpd-php MIME type for individuals file extensions.