1. (sudo) a2enmod rewrite
2. v /etc/apache2/sites-enabled/000-default zmenit AllowOverride na All
treba takhle:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
3. restartnout apache:
sudo /etc/init.d/apache2 restart