Hello everyone,
When we make a new account cPanel creates this code inside .htaccess for php8 automatically. if we change to php7 it will replace it with similar code with php7.
Now, I wanted to process .html and .html file as php.
One way is to just add it after .phtml but that is automatically replaced after some time by cPanel or when changing to other version it will be replaced and .html will no more be processed by php.
What I want is to somehow add .html .htm to this configuration so whenever a new cPanel account is created it have .html and .html inside the configuration, even after the change it should be persisted.
Is there any place at WHM when I can replace what should be added to .htaccess file at creation of account or changing of php version via php manager ?
When we make a new account cPanel creates this code inside .htaccess for php8 automatically. if we change to php7 it will replace it with similar code with php7.
Now, I wanted to process .html and .html file as php.
One way is to just add it after .phtml but that is automatically replaced after some time by cPanel or when changing to other version it will be replaced and .html will no more be processed by php.
What I want is to somehow add .html .htm to this configuration so whenever a new cPanel account is created it have .html and .html inside the configuration, even after the change it should be persisted.
Is there any place at WHM when I can replace what should be added to .htaccess file at creation of account or changing of php version via php manager ?
Apache config:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit