How can I execute php code as .htm or .html files? Print

  • 86

In your .htaccess file insert this line of code:

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

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


Was this answer helpful?
Back