Prevent .htaccess creation when changing PHP version?

woostar

Member
Mar 13, 2011
10
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

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
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?