enable htaccess in apache2 code example Example: adding htaccess file apache <Directory "/var/www"> AllowOverride All </Directory>