This technique will only work if your Apache server has PHP enabled ( Esta técnica só funcionará se o seu servidor Apache PHP ativado ( how to test php support in apache http server o modo de ensaio em apoio php servidor HTTP Apache ) and .htaccess enabled. ) E. Htaccess ativado.

In the root directory of your html files create a file named .htaccess . No diretório raiz do seu html criar um arquivo chamado. Htaccess. The file may already be present. O arquivo pode já estar presente.

Open the file in your favorite editor and add the following lines: Abra o arquivo em seu editor favorito e adicione as seguintes linhas:

addtype application/x-httpd-php .html addtype aplicação / x-httpd-php. html
addtype application/x-httpd-php .htm addtype aplicação / x-httpd-php. htm

Done! Feito!