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