You can set up the redirect using the CloudLinux LSAPI / LiteSpeed API by configuring your .htaccess or PHP handler settings.
Add the following line to your .htaccess file or server configuration:
AddHandler application/x-httpd-lsphp .htm .html .shtmlCreate a .htaccess file in your public_html folder.
Add these lines:
RemoveHandler .html .htm
AddType application/x-httpd-php .htm .htmlNote: Since these files will now be treated as PHP, you may need to set their file permissions to 755 for proper execution.
If the above does not work, try either of the following:
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml .html .htmor
AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml .html .htm