how to write to .htaccess using bitnami instance

You are here:
Estimated reading time: < 1 min

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

Was this article helpful?
Dislike 0