Stop Overwriting My .htaccess File Poorly

Hello.

Every time UNA overwrites my htaccess file (about every couple weeks), it does NOT copy custom lines exactly to the new version and screws up my website.

One line in particular is this:
AddHandler application/x-httpd-ea-php70 .php .php7 .phtml .htm .shtml

Each time the htaccess file updates, it only copies this:
AddHandler application/x-httpd-ea-php70 .php .php7 .phtml

All the .htm and .shtml includes then fail and my website looks broken until I manually update the htacess file myself.

Sometimes I don't figure it out immediately because only older pages (not UNA related) have ssi includes, and this costs me $100+ per day in lost revenue and pissed off visitors.

If UNA is going to update my htaccess file, it should duplicate my custom lines exactly. It's quite irritating.

Thank you.

  • 1651
  • More
Replies (2)
    • Put the handler stuff in the vhost/server block instead of the .htaccess.  Leave the .htaccess just for the UNA stuff.

      • Jeff C we very rarely update .htaccess file, it was updates recently once in several years. Also we don't have AddHandler line there at all. It looks like you need to talk to your hosting support about this, it maybe some tool in your site control panel changing it.

        Login or Join to comment.