How to protect htaccess so it can’t be overwritten?

Fixed this by changing permission on .htaccess to 444 from CPanel’s file manager. For some reason my FTP client – even though logged in as the same CPanel user – could not make the change and the file would always revert back to 644. Cpanel had no such problem at all.