.htaccess files are disallowed by default in the definition in /etc/apache2/sites-enabled/000-default:
Code:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
You can edit this file as root with sudo and add the DirectoryIndex directive there:
Code:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php
AllowOverride None
Order allow,deny
allow from all
</Directory>
or you can change AllowOverride from "None" to "All" to permit .htaccess to override the definition. A safer approach is to choose from among the options as described here.
Bookmarks