All Collections
PHP
Website development
How to parse PHP in HTML files?
How to parse PHP in HTML files?
Parsing PHP in HTML files
Updated over a week ago

If you want to make all of your website's .html pages run as .php files instead (parsing PHP in HTML files), all you need to do is open your .htaccess file and add this line (a handler):

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

NOTE:

  • Make sure to have your old .htaccess file backed up before proceeding

Did this answer your question?