How to Parse PHP in HTML Files? Print

  • 0

If you want all the .html pages of your websites to run as .php, or if you want to parse the PHP in HTML files, then please add the below-mentioned line to your .htaccess file

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

Important
Ensure that you take the backup of your existing .htaccess file before making any changes to your existing .htaccess file.

 


Was this answer helpful?

« Back

chat