Mautic Community Forums

Htacess persist settings after upgrade

Your software
My Mautic version is: v3.3.3
My PHP version is: 7.4
My Database type and version is: mysql

Your problem
My problem is:
After each upgrade the htacess file get completely replace, whipping out any settings we have in the system for whitelisting any custom files.

We have a CRON commands PHP file we use to run alot of various functions

after each upgrade we have to go into the htaccess file and then add |commands to the whitelist otherwise it throws a 403 error. This is the same if we configure anything from the servers control panel it also throws a 403.

All other platforms we run we are able to run an upgrade that respects any other configured logic in the htaccess rather than replacing the file completely.

For instance in WP there is logic to replace the basic line logic between 2 set parameters
with each plugin handling their own logic between their own parameter start/finish handles

1 Like