.htaccess file cannot be written

Defender is unable to write to the access file. It is using an absolute path from a former hosting service. I have updated all tables to the correct path, but Defender is still unable to update the .htaccess file.