Enable the rewrite module for apache
$ sudo a2enmod rewrite You can check to see if this worked by running: $ sudo apache2ctl -M and seeing if rewrite_module is on the list.
$ sudo a2enmod rewrite You can check to see if this worked by running: $ sudo apache2ctl -M and seeing if rewrite_module is on the list.