Prevent .htaccess creation when changing PHP version?

woostar

Member
Mar 13, 2011
7
0
51
I'm not sure if this is caused by EasyApache or MultiPHP, but how do I stop a .htaccess file being created (with AddHandler application/x-httpd-ea-php73 .php .php7 .phtml) when upgrading PHP versions? All my websites stop working and I have to go around all my websites and delete the .htaccess files ‍♂
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
7,940
630
263
Houston
cPanel Access Level
DataCenter Provider
When you're changing the PHP version the AddHandler should also change, is that not what's occurring? This is something automatically added when using MultiPHP manager and should function without causing failure to the sites. What's present for AddHandler in the .htaccess prior to the PHP version change?