Host changed php version to 8.1. Addhandler broke again. Parse HTML as PHP help

previously I had in my htaccess

AddHandler application/x-httpd-ea-php74 .html .htm

So I figured changing it to 81 would fix it. It did not. The web suggested this addhandler below which does seem to work. However whats the ___lsphp bit and is it necessary?

AddHandler application/x-httpd-ea-php81___lsphp .html

Thanks

I would think your host is best placed to answer this as I imagine the directive will vary for different hosts.

You would think. But every time I talk to anyone at Hostgator I’m talking to some other country with very little direct knowledge. AddHandler directive changes depending on the host?

1 Like

Why are you even running your PHP with .htm extension in the first place?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.