[Resolved] Process HTML Files As PHP

#1
Hi

I have just upgraded to litespeed server.

One of the older sites on our server processes HTML files as PHP.

I have tried adding AddType application/x-httpd-php .htm .html to the .htacces file but that did not work.

Is there a way of processing HTML files as PHP?
 

Pong

Administrator
Staff member
#2
It may depend on your apache configuration, how about:
AddType application/x-httpd-php5 .htm .html .php
If on a cpanel system, it should look similar to:
AddType application/x-httpd-ea-php70 .php .php7 .phtml .html .htm
 
Top