How to enable mod_rewrite on Ubuntu 12.04
type on terminal “sudo a2enmod rewrite”
then you must edit your apache configuration, open your conf at “/etc/apache2/site-enabled/000-default”
search this stuffs :
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
and change to
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
restart your apache2 with “sudo /etc/init.d/apache2/ restart”
finish„ good luck, happy exercising ;)