Knowledge base

Find articles about information features, troubleshooting guides, and other technical information related to the hosting service Hostinger.

access_time
Thursday, March 9, 2017
How to parse PHP in HTML files?

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.

PHP.htaccessparsehtml