Forum Moderators: phranque
AllowOverride in your main Apache configuration. The precise location of the configuration file depends on your Linux distribution as well as the method you chose to install Apache. <Directory /var/www/> section which has a AllowOverride None - this needs to be changed to AllowOverride All instead. Note that if you want to disallow indexes site-wide, you can also disallow indexes in the main configuration file, thus negating the need to have a .htaccess directive. /etc/apache2/sites-available directory, then restart Apache.