Black Friday Sale 90% OFF
07
DAYS
07
HOURS
59
MINUTES
28
SECONDS

How to parse PHP in HTML files?

Modified on:
parse php html .htaccess

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

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

IMPORTANT: Make sure to make backups of your original .htaccess file, as making changes to this file can disrupt access to your website.

  • Unlimited Number of Websites
  • 24/7 Live Support
  • Free Website Builder
  • 2X WordPress Optimized Speed
  • 30-Days Money-Back Guarantee
Black Friday Sale
From
RM
2
99
/mo
Save 90%
Let's go!