This blog post will explain how to fix the .htaccess file issue in Freepbx. Changes that are made to FreePBX sometimes results in the .htaccess file being deleted or corrupted. That is when the FreePBX framework needs to be reinstalled. Fwconsole is a command line tool that can do that. The ma in the command string means module administration. The downloadinstall framework –force downloads and reinstalls the framework. The –force flag will have to be added to the command string. Fwconsole reload saves the changes and reloads FreePBX. After that, FreePBX will no longer give the corrupted file alert.
fwconsole ma downloadinstall framework –force
fwconsole reload