I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:
sudo su2. Enable mod_rewrite module on apache
First enable the module as follows:
a2enmod rewriteChange all occurrence of "AllowOverRide None" to "AllowOverRide All". Basically all "None" to "All" in the following file:
gedit /etc/apache2/sites-available/defaultRestart Apache:
/etc/init.d/apache2 restart3. Open file config.php on CodeIgniter (application\config\)
Remove index.php on $config['index_page'] = "index.php";
$config['index_page'] = "";4. Make file .htaccess on CodeIgniter root directory
Fill the file with this code :
RewriteEngine OnNow Index.php on CodeIgniter Url disappear
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]