.htaccesscodeigniterubuntults

Migrating CodeIgniter from WAMP to Ubuntu 12.04 LTS LAMP


After I successfully installed Ubuntu 12.04 LTS LAMP on my local machine, following this TUT. And installed phpmyadmin with this instruction. I migrated my working CodeIgniter project inside /var/www/ and updated my database. Everything seems to be working fine except i'm having a 404 error saying:

GET http://192.168.1.11/quantum/login/ 404 (Not Found)
The following error occured: error Not Found
GET http://192.168.1.11/quantum/user/ 404 (Not Found)
The following error occured: error Not Found

After hours of desperate troubleshooting I found some possible causes.

  1. .htaccess (already updated)

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L]

  1. mod_rewrite (already enabled)

but still, i cant seem to make it work. any ideas? is there more to be configured to make the project running?


Solution

  • Turns out I forgot to reconfigure my htaccess by allowing override on my httpd.conf inside apache2.

    <Directory /var/www/quantum>
      AllowOverride All
    </Directory>
    

    Works like peanut butter and jelly.