To make the .htaccess file writable when disabled use the following steps.
1.
- Change AllowOveride None
- to AllowOveride All
2.
Restart server with following command
-
sudo /opt/bitnami/ctlscript.sh restart apache
3.
go into main directory where .htaccess is located
4.
Change the permission with the following script
sudo chmod 666 .htaccess
change it back after .htaccess is written to
sudo chmod 644 .htaccess
———————–htaccess.conf—————————————–
sudo chmod 666 htaccess.conf
change it back after htaccess.conf is written to
sudo chmod 644 htaccess.conf
———————————wp-config.php——————————-
sudo chmod 666 wp-config.php
change it back after wp-config.php is written to
sudo chmod 640 wp-config.php