{"id":2497,"date":"2022-06-11T23:08:01","date_gmt":"2022-06-11T23:08:01","guid":{"rendered":"https:\/\/blog.hostinger.io\/fr\/support\/2022\/06\/11\/1583190-comment-analyser-php-dans-les-fichiers-html-chez-hostinger\/"},"modified":"2022-06-11T23:08:01","modified_gmt":"2022-06-11T23:08:01","slug":"1583190-comment-analyser-php-dans-les-fichiers-html-chez-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/fr\/support\/1583190-comment-analyser-php-dans-les-fichiers-html-chez-hostinger\/","title":{"rendered":"Comment Analyser PHP dans les Fichiers HTML chez Hostinger ?"},"content":{"rendered":"<p class=\"no-margin\">Si vous voulez ex&eacute;cuter toutes les pages <b>.html<\/b> de votre site web en tant que fichiers <b>.php<\/b> (en analysant le PHP dans les fichiers HTML), il vous suffit d&rsquo;ouvrir votre fichier <b><a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">.htaccess<\/a><\/b> et d&rsquo;ajouter cette ligne (un handler) :<\/p><p class=\"no-margin\">\n<\/p><pre><code>AddHandler application\/x-httpd-lsphp .htm .html<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>REMARQUE :<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">Assurez-vous d&rsquo;avoir <b><a href=\"https:\/\/support.hostinger.com\/en\/articles\/2298928-how-to-make-backups-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">sauvegard&eacute;<\/a><\/b> votre ancien fichier .<b>htaccess <\/b>avant de proc&eacute;der.<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Analyser le PHP dans les fichiers HTML<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[205],"tags":[],"class_list":["post-2497","post","type-post","status-publish","format-standard","hentry","category-developpement-de-site-web"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583190-how-to-parse-php-in-html-files\/","default":1},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583190-comment-analyser-php-dans-les-fichiers-html-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583190-bagaimana-caranya-membuat-parsing-php-di-file-html-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583190-como-executar-php-em-arquivos-html-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583190---php--html--hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/2497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/comments?post=2497"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/2497\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/media?parent=2497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/categories?post=2497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/tags?post=2497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}