Ubuntu enable mod rewrite - bcit-ci/CodeIgniter GitHub Wiki

  1. sudo a2enmod rewrite

  2. sudo gedit /etc/apache2/apache2.conf

  3. change the AllowOverride value to "All"

  4. sudo service apache2 restart

Please refer to this article How to setup Apache Mod Rewrite