This technique will only work if your Apache server has PHP enabled ( Cette technique ne fonctionne que si votre serveur Apache PHP est activé ( how to test php support in apache http server comment tester support PHP dans Apache HTTP Server ) and .htaccess enabled. ) Et. Htaccess activé.

In the root directory of your html files create a file named .htaccess . Dans le répertoire racine de vos fichiers html créer un fichier nommé. Htaccess. The file may already be present. Le fichier mai déjà être présent.

Open the file in your favorite editor and add the following lines: Ouvrez le fichier dans votre éditeur de texte favori et ajoutez les lignes suivantes:

addtype application/x-httpd-php .html AddType application / x-httpd-php. html
addtype application/x-httpd-php .htm AddType application / x-httpd-php. htm

Done! Fait!