logo

Black Friday
Sale

  •  99.9 % oppetid
  •  Gratis SSL-certifikat
  •  24/7 Live Support
  •  30 dages returret
Kom i gang

Up To

90

%

OFF

05
DAYS
19
HOURS
29
MINUTES
56
SECONDS
Black Friday Sale: Webhotel
Fra  DKK6,79 /Måned!
See All Deals
×

Vidensbase

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

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.