Htaccess force le traitement des fichiers html comme php
08815266
Messages postés
52
Date d'inscription
Statut
Membre
Dernière intervention
-
08815266 Messages postés 52 Date d'inscription Statut Membre Dernière intervention -
08815266 Messages postés 52 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
On a essayé de configurer htaccess de considérer HTML comme PHP Handler mais tous les test sont échoué.
#AddHandler application/x-httpd-php54 .htm .html
#AddHandler application/x-httpd-php5 .html .htm
#AddType application/x-httpd-php .html .htm
#AddType application/x-httpd-php .php .html
#AddType application/x-httpd-php5 .html .htm
#AddType application/x-httpd-php .php .htm .html
#AddType x-mapp-php5 .html .htm
#RewriteRule \.(html|htm)$ - [H=application/x-httpd-php5]
#RewriteRule \.(html|htm)$ - [T=application/x-httpd-php5]
Merci de me conseillé.
On a essayé de configurer htaccess de considérer HTML comme PHP Handler mais tous les test sont échoué.
#AddHandler application/x-httpd-php54 .htm .html
#AddHandler application/x-httpd-php5 .html .htm
#AddType application/x-httpd-php .html .htm
#AddType application/x-httpd-php .php .html
#AddType application/x-httpd-php5 .html .htm
#AddType application/x-httpd-php .php .htm .html
#AddType x-mapp-php5 .html .htm
#RewriteRule \.(html|htm)$ - [H=application/x-httpd-php5]
#RewriteRule \.(html|htm)$ - [T=application/x-httpd-php5]
Merci de me conseillé.
A voir également:
- Htaccess force le traitement des fichiers html comme php
- Supprimer un fichier de force - Guide
- Demarrage forcé pc - Guide
- Reconsidérer le traitement de vos informations à des fins publicitaires - Accueil - Réseaux sociaux
- Renommer des fichiers en masse - Guide
- Editeur html - Télécharger - HTML
Tous les lignes procédés par # sont des lignes déjà testé, bon on a trouvé la solution est d'ajouté la commande AddType application/x-httpd-php5 .html .htm dans le fichier de configuration apache de cpanel (apeche handler) et pas dans le fichier htaccess